aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/terminal/kitty/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-09-28 00:37:34 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-09-28 00:37:34 +0530
commitbdf5331c964e80204caaa7e54a60ef69748f33ed (patch)
tree2dd6d20d307951adc6647d999cc3351646b85f41 /modules/desktop/terminal/kitty/default.nix
parent4d315448c08f98140229f006898dc408fcb6953e (diff)
downloadhome-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/default.nix')
-rw-r--r--modules/desktop/terminal/kitty/default.nix8
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;
};
};
}