Install nh and friends, modularize nixos conf.
This commit is contained in:
parent
ea86d38cd1
commit
5054b13564
14 changed files with 302 additions and 209 deletions
17
modules/nixos/zsh.nix
Normal file
17
modules/nixos/zsh.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.zsh.enable = lib.mkEnableOption "install and enable zsh for all users";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.zsh.enable {
|
||||
# Installing zsh
|
||||
programs.zsh.enable = true;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
environment.pathsToLink = ["/share/zsh"];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue