Make zsh install conditional.

This commit is contained in:
Tom Alexander 2025-01-23 21:55:22 -05:00
parent 2ce4520cd6
commit facfd01661
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 47 additions and 30 deletions

View File

@ -31,4 +31,5 @@
me.lvfs.enable = true; me.lvfs.enable = true;
me.sound.enable = true; me.sound.enable = true;
me.zrepl.enable = true; me.zrepl.enable = true;
me.zsh.enable = true;
} }

View File

@ -58,4 +58,5 @@
me.wasm.enable = true; me.wasm.enable = true;
me.waybar.enable = true; me.waybar.enable = true;
me.zrepl.enable = true; me.zrepl.enable = true;
me.zsh.enable = true;
} }

View File

@ -55,6 +55,18 @@ in
{ {
imports = [ ]; imports = [ ];
options.me = {
zsh.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install zsh.";
};
};
config = lib.mkIf config.me.zsh.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
zsh zsh
]; ];
@ -87,4 +99,7 @@ in
]; ];
}; };
}; };
}
]
);
} }