Add support for the other shells
This commit is contained in:
parent
59296fbbc3
commit
631b7f6f88
|
@ -693,17 +693,20 @@ in {
|
||||||
users.groups.${user.name} = {};
|
users.groups.${user.name} = {};
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
] ++ (map (shell: {
|
||||||
assertion = (user.shell == pkgs.fish) -> (config.programs.fish.enable == true);
|
assertion = (user.shell == pkgs.${shell}) -> (config.programs.${shell}.enable == true);
|
||||||
message = ''
|
message = ''
|
||||||
users.users.${user.name}.shell is set to fish, but
|
users.users.${user.name}.shell is set to ${shell}, but
|
||||||
programs.fish.enable is not true. This will cause the fish shell
|
programs.${shell}.enable is not true. This will cause the ${shell}
|
||||||
to lack the basic nix directories in its PATH and might make
|
shell to lack the basic nix directories in its PATH and might make
|
||||||
logging in as that user impossible. You can fix it with:
|
logging in as that user impossible. You can fix it with:
|
||||||
programs.fish.enable = true;
|
programs.${shell}.enable = true;
|
||||||
'';
|
'';
|
||||||
}
|
}) [
|
||||||
]
|
"fish"
|
||||||
|
"xonsh"
|
||||||
|
"zsh"
|
||||||
|
])
|
||||||
));
|
));
|
||||||
|
|
||||||
warnings =
|
warnings =
|
||||||
|
|
Loading…
Reference in a new issue