Command Shell: Difference between revisions

imported>Klaymore
m Small wording fix
imported>Pfeiferj
Line 18: Line 18:
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
users.users.yourname.shell = pkgs.zsh;
users.users.yourname.shell = pkgs.zsh;
</nowiki>}}  
</nowiki>}}
 
Many programs look at /etc/shells to determine if a user is a "normal" user and not a "system" user. Therefore it is recommended to add the user shells to this list. To add a shell to /etc/shells use the following line in your config:
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
environment.shells = with pkgs; [ zsh ];
</nowiki>}}


== Changing /bin/sh ==
== Changing /bin/sh ==