From b699581bf392665d69773aed9c647dd2cc707099 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sat, 22 Jun 2024 13:25:40 -0400 Subject: [PATCH] fix service definition Signed-off-by: ahuston-0 --- systems/palatine-hill/attic.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/systems/palatine-hill/attic.nix b/systems/palatine-hill/attic.nix index b793bf3..d8c8635 100644 --- a/systems/palatine-hill/attic.nix +++ b/systems/palatine-hill/attic.nix @@ -110,8 +110,9 @@ ]; description = "Force resync of hydra derivations with attic"; serviceConfig = { - User = "root"; - Restart = "always"; + Type = "oneshot"; + DynamicUser = "yes"; + Group = "hydra"; ExecStart = "${config.nix.package}/bin/nix ${./attic/sync-attic.bash}"; }; };