Merge pull request #283244 from bjornfor/nixos-add-polkit-to-installation-device

nixos/installation-device: enable polkit
This commit is contained in:
Ryan Lahfa 2024-01-26 14:46:48 +01:00 committed by GitHub
commit 37832d237e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,6 +39,9 @@ with lib;
# Allow the user to log in as root without a password.
users.users.root.initialHashedPassword = "";
# Don't require sudo/root to `reboot` or `poweroff`.
security.polkit.enable = true;
# Allow passwordless sudo from nixos user
security.sudo = {
enable = mkDefault true;