mv zsh to module

This commit is contained in:
smayzy
2025-07-08 17:43:52 +02:00
parent 6966de63c9
commit a5edf53519
4 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -13,6 +13,7 @@
prism.enable = true; prism.enable = true;
fzf.enable = true; fzf.enable = true;
firefox.enable = true; firefox.enable = true;
zsh.enable = true;
}; };
home-manager = { home-manager = {
@@ -98,5 +99,4 @@
]; ];
}; };
programs.zsh.enable = true;
} }
+1
View File
@@ -7,6 +7,7 @@
./virt ./virt
./games ./games
./browser ./browser
./shell
]; ];
# Timzone and locales (same for all machines so I put it here) # Timzone and locales (same for all machines so I put it here)
+6
View File
@@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./zsh.nix
];
}
+15
View File
@@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.zsh.enable = mkOption {
type = types.bool;
default = false;
description = "zsh";
};
config = mkIf config.smayzy.zsh.enable {
programs.zsh.enable = true;
};
}