refactor(homeModules/desktop): move terminal config to module
This commit is contained in:
parent
26c3c43aee
commit
feff604e8f
3 changed files with 11 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
options.desktop = {
|
||||
windowManager = lib.pantheon.mkStrOption;
|
||||
browser = lib.pantheon.mkStrOption;
|
||||
terminal = lib.pantheon.mkStrOption;
|
||||
};
|
||||
|
||||
|
||||
|
|
9
modules/home/desktop/terminal/default.nix
Normal file
9
modules/home/desktop/terminal/default.nix
Normal 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";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue