feat(desktop): move terminal config to homes and use home-manager modules

This commit is contained in:
Mohammad Rafiq 2025-06-14 15:39:14 +08:00
parent ee2dfd8398
commit a04688d17b
No known key found for this signature in database
6 changed files with 30 additions and 25 deletions

View file

@ -1,23 +0,0 @@
{
osConfig,
lib,
pkgs,
...
}:
{
config = lib.mkMerge [
(lib.mkIf (osConfig.desktop.terminal == "kitty") {
home.packages = with pkgs; [ kitty ];
home.sessionVariables.TERMINAL = "kitty";
})
(lib.mkIf (osConfig.desktop.terminal == "ghostty") {
home.sessionVariables.TERMINAL = "ghostty -e";
programs.ghostty = {
enable = true;
settings = {
confirm-close-surface = false;
};
};
})
];
}