We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 486c531 commit 59296fbCopy full SHA for 59296fb
1 file changed
nixos/modules/config/users-groups.nix
@@ -693,6 +693,16 @@ in {
693
users.groups.${user.name} = {};
694
'';
695
}
696
+ {
697
+ assertion = (user.shell == pkgs.fish) -> (config.programs.fish.enable == true);
698
+ message = ''
699
+ users.users.${user.name}.shell is set to fish, but
700
+ programs.fish.enable is not true. This will cause the fish shell
701
+ to lack the basic nix directories in its PATH and might make
702
+ logging in as that user impossible. You can fix it with:
703
+ programs.fish.enable = true;
704
+ '';
705
+ }
706
]
707
));
708
0 commit comments