diff options
author | Ryan Lahfa <masterancpp@gmail.com> | 2024-01-26 14:46:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 14:46:48 +0100 |
commit | 37832d237ebb296daec31616e65a98bfe230599f (patch) | |
tree | 5f83bab5419359d9ece486212a0332216119ce03 /nixos | |
parent | 235ca05f09152b14f4fced91c699aa7723f8b79d (diff) | |
parent | dadc54aabee276e3535e5bac85d906b07756363e (diff) |
Merge pull request #283244 from bjornfor/nixos-add-polkit-to-installation-device
nixos/installation-device: enable polkit
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/profiles/installation-device.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix index 58f07b050b5c4..0b10c04141470 100644 --- a/nixos/modules/profiles/installation-device.nix +++ b/nixos/modules/profiles/installation-device.nix @@ -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; |