diff --git a/home/alacritty.nix b/home/alacritty.nix index 3237b7b..a32a5d6 100644 --- a/home/alacritty.nix +++ b/home/alacritty.nix @@ -1,25 +1,29 @@ { pkgs, lib, + config, ... }: { - programs.alacritty = { - enable = true; - settings = { - font = { - size = 17.0; - normal.family = "Cascadia Code"; + options.enableAlacritty = lib.mkEnableOption "Alacritty terminal emulator"; + config = { + programs.alacritty = { + enable = config.enableAlacritty; + settings = { + font = { + size = 17.0; + normal.family = "Cascadia Code"; + }; + terminal.shell = { + args = ["new-session" "-A" "-s" "general"]; + program = lib.getExe pkgs.tmux; + }; + window = { + decorations = "None"; + opacity = 1; + startup_mode = "Maximized"; + }; + env.TERM = "xterm-256color"; }; - terminal.shell = { - args = ["new-session" "-A" "-s" "general"]; - program = lib.getExe pkgs.tmux; - }; - window = { - decorations = "None"; - opacity = 1; - startup_mode = "Maximized"; - }; - env.TERM = "xterm-256color"; }; }; } diff --git a/home/ghostty.nix b/home/ghostty.nix index ea857af..1d5a1b2 100644 --- a/home/ghostty.nix +++ b/home/ghostty.nix @@ -1,11 +1,16 @@ { pkgs, lib, + config, ... }: { - programs.ghostty = { - enable = true; - settings = { + options.enableGhostty = lib.mkEnableOption "Ghostty terminal emulator"; + config = { + programs.ghostty = { + enable = config.enableGhostty; + settings = { + }; }; }; + } diff --git a/home/home.nix b/home/home.nix index 744a3b6..c5bf464 100644 --- a/home/home.nix +++ b/home/home.nix @@ -30,4 +30,6 @@ enableGTK = config.myModules.enableKDE; enableFirefox = config.myModules.enableKDE; + enableAlacritty = config.myModules.enableKDE; + enableGhostty = config.myModules.enableKDE; }