From 264986d505458da494217618d79aa8a5b34043c3 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 28 Feb 2022 16:35:04 +0100 Subject: [PATCH] try to allow remote rebuilds without password --- modules/common/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/common/default.nix b/modules/common/default.nix index 0287426..3de0cdd 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -109,6 +109,10 @@ command = "/run/current-system/sw/bin/nixos-rebuild"; options = [ "NOPASSWD" ]; } + { + command = "/run/current-system/sw/bin/nix-env -p /nix/var/nix/profiles/system"; + options = [ "NOPASSWD" ]; + } ]; } ];