summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2022-06-09 17:07:28 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-06-09 16:25:59 +0000
commit397da81472ac40733b12df6c2e1b294d54577b0d (patch)
tree748b416a11c8f58dd200470013fff279589513f9
parentMerge pull request #177017 from sgiroux-spwr/backport-174952-to-release-22.05 (diff)
downloadnixpkgs-origin/backport-177054-to-release-22.05.tar.gz
cachix-agent: set USER to please cachixorigin/backport-177054-to-release-22.05
(cherry picked from commit f38fd4699273f0182cf6bc97a231877d0036959e)
-rw-r--r--nixos/modules/services/system/cachix-agent/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/system/cachix-agent/default.nix b/nixos/modules/services/system/cachix-agent/default.nix
index 496e0b90355b..f11d80d244d2 100644
--- a/nixos/modules/services/system/cachix-agent/default.nix
+++ b/nixos/modules/services/system/cachix-agent/default.nix
@@ -47,6 +47,7 @@ in {
wantedBy = [ "multi-user.target" ];
# don't restart while changing
reloadIfChanged = true;
+ environment.USER = "root";
serviceConfig = {
Restart = "on-failure";
EnvironmentFile = cfg.credentialsFile;