From dcab266a244a121ae204e44f05eaba32734b7624 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 10 Feb 2024 21:24:28 +0900 Subject: feat(modules/atticd): persist atticd-watch-store config --- modules/services/atticd.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/services/atticd.nix b/modules/services/atticd.nix index fca181d..dcc9ea7 100644 --- a/modules/services/atticd.nix +++ b/modules/services/atticd.nix @@ -95,6 +95,9 @@ in wantedBy = [ "multi-user.target" ]; wants = [ "network-online.target" ]; serviceConfig = { + DynamicUser = true; + StateDirectory = "atticd-watch-store"; + Environment = "XDG_CONFIG_HOME=/var/lib/atticd-watch-store"; ExecStart = "${pkgs.attic}/bin/attic watch-store hydra"; Restart = "on-failure"; RestartSec = "5s"; @@ -108,5 +111,9 @@ in RestrictSUIDSGID = true; }; }; + + modules.persistence.directories = [ + "/var/lib/private/atticd-watch-store" + ]; }; } -- cgit 1.4.1