about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRyan Lahfa <masterancpp@gmail.com>2024-01-26 14:46:48 +0100
committerGitHub <noreply@github.com>2024-01-26 14:46:48 +0100
commit37832d237ebb296daec31616e65a98bfe230599f (patch)
tree5f83bab5419359d9ece486212a0332216119ce03 /nixos
parent235ca05f09152b14f4fced91c699aa7723f8b79d (diff)
parentdadc54aabee276e3535e5bac85d906b07756363e (diff)
downloadnixlib-37832d237ebb296daec31616e65a98bfe230599f.tar
nixlib-37832d237ebb296daec31616e65a98bfe230599f.tar.gz
nixlib-37832d237ebb296daec31616e65a98bfe230599f.tar.bz2
nixlib-37832d237ebb296daec31616e65a98bfe230599f.tar.lz
nixlib-37832d237ebb296daec31616e65a98bfe230599f.tar.xz
nixlib-37832d237ebb296daec31616e65a98bfe230599f.tar.zst
nixlib-37832d237ebb296daec31616e65a98bfe230599f.zip
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.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix
index 58f07b050b5c..0b10c0414147 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;