From 8cf567fdc42658dae27e0aeab7a0be1e0b9e4d5e Mon Sep 17 00:00:00 2001 From: osbm Date: Thu, 29 May 2025 10:54:05 +0300 Subject: [PATCH] this is a stupid way to do this shit --- home/alacritty.nix | 36 ++++++++++++++++++++---------------- home/ghostty.nix | 11 ++++++++--- home/home.nix | 2 ++ 3 files changed, 30 insertions(+), 19 deletions(-) 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; }