diff options
author | devhell <devhell@mailfresser.de> | 2019-01-23 23:22:05 +0000 |
---|---|---|
committer | devhell <devhell@mailfresser.de> | 2019-01-27 20:33:36 +0000 |
commit | c3d22fdca11b39a859501d4b223266d528101e80 (patch) | |
tree | 2c4c6b0cc9de5c41582882b395be3a8a1d09127a /nixos | |
parent | 8449cc5b11a4f4c11772b83174c09f9aef7eb9b7 (diff) | |
download | nixpkgs-c3d22fdca11b39a859501d4b223266d528101e80.tar nixpkgs-c3d22fdca11b39a859501d4b223266d528101e80.tar.gz nixpkgs-c3d22fdca11b39a859501d4b223266d528101e80.tar.bz2 nixpkgs-c3d22fdca11b39a859501d4b223266d528101e80.tar.lz nixpkgs-c3d22fdca11b39a859501d4b223266d528101e80.tar.xz nixpkgs-c3d22fdca11b39a859501d4b223266d528101e80.tar.zst nixpkgs-c3d22fdca11b39a859501d4b223266d528101e80.zip |
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
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/installer/tools/nixos-generate-config.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index bad9356ab5a..e58392ad05b 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -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 |