diff --git a/nix/homeModules/common/ghostty.nix b/nix/homeModules/common/ghostty.nix index f10c7465..e4747ddb 100644 --- a/nix/homeModules/common/ghostty.nix +++ b/nix/homeModules/common/ghostty.nix @@ -1,37 +1,52 @@ { - programs.ghostty.settings = { - gtk-titlebar = false; - window-decoration = "none"; - - font-family = "Iosevka NFM"; - font-size = 12; - - background = "#fdf6e3"; - foreground = "#073642"; - palette = [ - "0=#073642" - "1=#af005f" - "2=#859900" - "3=#ba9b23" - "4=#268bd2" - "5=#5f5faf" - "6=#2aa198" - "7=#a0a1a7" - "8=#4d4d4d" - "9=#d33682" - "10=#29a350" - "11=#d6b429" - "12=#469edd" - "13=#6060d1" - "14=#4bccc1" # a platupus? perry the platupus? - "15=#eeeadd" + lib, + pkgs, + config, + ... +}: +let + cfg = config.programs.ghostty; +in +{ + config = lib.mkIf cfg.enable { + home.packages = [ + pkgs.nerd-fonts.iosevka ]; - confirm-close-surface = false; + programs.ghostty.settings = { + gtk-titlebar = false; + window-decoration = "none"; - keybind = [ - "ctrl+shift+==increase_font_size:0.5" - "ctrl+-=decrease_font_size:0.5" - ]; + font-family = "Iosevka NFM"; + font-size = 12; + + background = "#fdf6e3"; + foreground = "#073642"; + palette = [ + "0=#073642" + "1=#af005f" + "2=#859900" + "3=#ba9b23" + "4=#268bd2" + "5=#5f5faf" + "6=#2aa198" + "7=#a0a1a7" + "8=#4d4d4d" + "9=#d33682" + "10=#29a350" + "11=#d6b429" + "12=#469edd" + "13=#6060d1" + "14=#4bccc1" # a platupus? perry the platupus? + "15=#eeeadd" + ]; + + confirm-close-surface = false; + + keybind = [ + "ctrl+shift+==increase_font_size:1" + "ctrl+-=decrease_font_size:1" + ]; + }; }; }