From cfdbf4a9770cc1fd6e3f1520d301b5550be5dafb Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 7 Jan 2025 21:50:16 -0600 Subject: [PATCH] ghostty: initial program Signed-off-by: Myned --- options/custom/programs/default.nix | 1 + options/custom/programs/ghostty.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 options/custom/programs/ghostty.nix diff --git a/options/custom/programs/default.nix b/options/custom/programs/default.nix index 6401fae..3748eb4 100644 --- a/options/custom/programs/default.nix +++ b/options/custom/programs/default.nix @@ -32,6 +32,7 @@ with lib; { dconf.enable = true; firefox.enable = true; #// foot.enable = true; + ghostty.enable = true; #// gnome-terminal.enable = true; #// kdeconnect.enable = true; kitty.enable = true; diff --git a/options/custom/programs/ghostty.nix b/options/custom/programs/ghostty.nix new file mode 100644 index 0000000..939fe4d --- /dev/null +++ b/options/custom/programs/ghostty.nix @@ -0,0 +1,28 @@ +{ + config, + lib, + ... +}: +with lib; let + cfg = config.custom.programs.ghostty; + hm = config.home-manager.users.${config.custom.username}; +in { + options.custom.programs.ghostty = { + enable = mkOption {default = false;}; + }; + + config = mkIf cfg.enable { + home-manager.sharedModules = [ + { + # https://ghostty.org/ + programs.ghostty = { + enable = true; + + # https://ghostty.org/docs/config/reference + settings = { + }; + }; + } + ]; + }; +}