nixos-generate-config: Include extraGroups "wheel"

I've been asked, on numerous occasions, by my students and others, how
to 'sudo' on NixOS.

Of course new users could read up in the manual on how to do that, or we
could make it more accessible for them by simply making it visible in
the default `configuration.nix` file.

Additionally, as raised in [1], replacing `guest` with something more
recognizable could be potentially beneficial to new users. I've
opted for `jane` for now.

[1]: https://github.com/NixOS/nixpkgs/pull/54519#issuecomment-457012223
This commit is contained in:
devhell 2019-01-23 23:22:05 +00:00
parent 8449cc5b11
commit c3d22fdca1

View File

@ -635,9 +635,10 @@ $bootLoaderConfig
# services.xserver.desktopManager.plasma5.enable = true; # services.xserver.desktopManager.plasma5.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
# users.users.guest = { # users.users.jane = {
# isNormalUser = true; # isNormalUser = true;
# uid = 1000; # uid = 1000;
# extraGroups = [ "wheel" ]; # Enable sudo for the user.
# }; # };
# This value determines the NixOS release with which your system is to be # This value determines the NixOS release with which your system is to be