Make zsh install conditional.
This commit is contained in:
parent
2ce4520cd6
commit
facfd01661
@ -31,4 +31,5 @@
|
||||
me.lvfs.enable = true;
|
||||
me.sound.enable = true;
|
||||
me.zrepl.enable = true;
|
||||
me.zsh.enable = true;
|
||||
}
|
||||
|
@ -58,4 +58,5 @@
|
||||
me.wasm.enable = true;
|
||||
me.waybar.enable = true;
|
||||
me.zrepl.enable = true;
|
||||
me.zsh.enable = true;
|
||||
}
|
||||
|
@ -55,6 +55,18 @@ in
|
||||
{
|
||||
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; [
|
||||
zsh
|
||||
];
|
||||
@ -88,3 +100,6 @@ in
|
||||
};
|
||||
};
|
||||
}
|
||||
]
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user