summaryrefslogtreecommitdiff
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-11 08:43:51 +0200
commitf1fef7c7a200d8c3e9d8b3b171f4b0429d183433 (patch)
tree0b350928ca165b78087fa1d8b58e33bc1d56e191
parentb87fb2aaece93ae9682643ea7e1a845331524598 (diff)
tweak(server): enable passwordless sudo and remote rebuilds
-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"];
}