nixos/shadow: use /bin/sh as default userDefaultShell

The default was previously set by the bash module. It's not set directly
here (to the compiled in value) of the shadow package to allow disabling
the bash module.

Note that this doesn't mean that the effective default shell of a normal
NixOS installation has changed. It is still bash.
This commit is contained in:
nikstur
2025-09-28 20:44:11 +02:00
parent a2c17d7de3
commit e8b9d879ce

View File

@@ -158,6 +158,8 @@ in
This must not be a store path, since the path is This must not be a store path, since the path is
used outside the store (in particular in /etc/passwd). used outside the store (in particular in /etc/passwd).
''; '';
# /bin/sh is also the compiled in default of the shadow package.
default = "/bin/sh";
example = lib.literalExpression "pkgs.zsh"; example = lib.literalExpression "pkgs.zsh";
type = lib.types.either lib.types.path lib.types.shellPackage; type = lib.types.either lib.types.path lib.types.shellPackage;
}; };