summaryrefslogtreecommitdiff
path: root/nixos/profiles/server/default.nix
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-06-11 08:43:42 +0200
committerMartin Fischer <martin@push-f.com>2025-06-16 16:25:48 +0200
commit0f171569d25ee3827bee035fc2d244d0f89ca296 (patch)
tree2f9a60fd327af8445c0944fd6d75b4108b3ae6ff /nixos/profiles/server/default.nix
parentb3b82eb4c5bb389ef361640641cd41cfccb68882 (diff)
tweak(server): enable passwordless sudo and remote rebuilds
Diffstat (limited to 'nixos/profiles/server/default.nix')
-rw-r--r--nixos/profiles/server/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/profiles/server/default.nix b/nixos/profiles/server/default.nix
index ac24e20..07dcd4b 100644
--- a/nixos/profiles/server/default.nix
+++ b/nixos/profiles/server/default.nix
@@ -13,4 +13,9 @@
};
};
};
+
+ security.sudo.wheelNeedsPassword = false;
+
+ # For remote rebuilds with --target-host.
+ nix.settings.trusted-users = ["@wheel"];
}