diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-28 00:37:34 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-28 00:37:34 +0530 |
| commit | bdf5331c964e80204caaa7e54a60ef69748f33ed (patch) | |
| tree | 2dd6d20d307951adc6647d999cc3351646b85f41 /modules/desktop/terminal/kitty | |
| parent | 4d315448c08f98140229f006898dc408fcb6953e (diff) | |
| download | home-manager-config-bdf5331c964e80204caaa7e54a60ef69748f33ed.tar.gz home-manager-config-bdf5331c964e80204caaa7e54a60ef69748f33ed.zip | |
Added ability to change the default program if multiple programs for the same purpose are enabled.
Diffstat (limited to 'modules/desktop/terminal/kitty')
| -rw-r--r-- | modules/desktop/terminal/kitty/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/desktop/terminal/kitty/default.nix b/modules/desktop/terminal/kitty/default.nix index 8950a46..a34e58a 100644 --- a/modules/desktop/terminal/kitty/default.nix +++ b/modules/desktop/terminal/kitty/default.nix @@ -13,7 +13,11 @@ } ]; programs.kitty.enable = true; - desktop.terminal.default = lib.mkDefault "${pkgs.kitty}/bin/kitty"; + desktop.terminal.default = lib.mkDefault "kitty"; + desktop.terminal.command = + if config.desktop.terminal.default == "kitty" then + lib.mkForce "${pkgs.kitty}/bin/kitty" + else ""; programs.kitty.settings = with config.scheme.withHashtag; { window_padding_width = config.desktop.window-manager.gap; @@ -42,7 +46,7 @@ selection_background = base03; selection_foreground = base00; - shell = config.shell.default; + shell = config.shell.command; }; }; } |
