users.defaultUserShell

NixOS option

This option defines the default shell assigned to user accounts. This can be either a full system path or a shell package. This must not be a store path, since the path is used outside the store (in particular in /etc/passwd).

type: absolute path or package
Default
"/bin/sh"
Example
pkgs.zsh
declared in: nixos/modules/programs/shadow.nixView source on NixOS/nixpkgs →