mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
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:
parent
8449cc5b11
commit
c3d22fdca1
@ -635,9 +635,10 @@ $bootLoaderConfig
|
||||
# services.xserver.desktopManager.plasma5.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
# users.users.guest = {
|
||||
# users.users.jane = {
|
||||
# isNormalUser = true;
|
||||
# uid = 1000;
|
||||
# extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
# };
|
||||
|
||||
# This value determines the NixOS release with which your system is to be
|
||||
|
Loading…
Reference in New Issue
Block a user