refactor(homeModules/desktop): move terminal config to module

This commit is contained in:
Mohammad Rafiq 2025-05-20 12:18:06 +08:00
parent 26c3c43aee
commit feff604e8f
No known key found for this signature in database
3 changed files with 11 additions and 3 deletions

View file

@ -9,6 +9,7 @@
cli.git.defaultBranch = "prime";
desktop.windowManager = "hyprland";
desktop.browser = "firefox";
desktop.terminal = "kitty";
home.shellAliases.v = "nvim";
home.shellAliases = {
@ -24,11 +25,8 @@
fzf
devenv
pantheon.rebuild
kitty
];
home.sessionVariables = { TERMINAL = "kitty"; };
programs.direnv = {
enable = true;
nix-direnv.enable = true;

View file

@ -3,6 +3,7 @@
options.desktop = {
windowManager = lib.pantheon.mkStrOption;
browser = lib.pantheon.mkStrOption;
terminal = lib.pantheon.mkStrOption;
};

View file

@ -0,0 +1,9 @@
{ config, lib, pkgs, ... }:
{
config = lib.mkMerge [
(lib.mkIf (config.desktop.terminal == "kitty") {
home.packages = with pkgs; [ kitty ];
home.sessionVariables.TERMINAL = "kitty";
})
];
}