don't require password auth for sudo

This commit is contained in:
Valentin Gagarin 2024-11-14 11:42:49 +01:00
parent 6f5004da17
commit 9aca028f95

View file

@ -197,6 +197,7 @@
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";
security.sudo.wheelNeedsPassword = false;
# 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.procolix = { users.users.procolix = {
isNormalUser = true; isNormalUser = true;
@ -251,6 +252,7 @@
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
services.openssh.settings.PasswordAuthentication = false;
# Enable xe-guest-utilities # Enable xe-guest-utilities
services.xe-guest-utilities.enable = true; services.xe-guest-utilities.enable = true;