correct the forget service

This commit is contained in:
Andreas Zweili 2022-02-28 17:15:14 +01:00
parent b9105eb9f0
commit ad38533750

View File

@ -22,9 +22,11 @@ in
};
systemd.services.prune-restic = {
User = custom.username;
serviceConfig.Type = "oneshot";
After = "restic-backups-${custom.username}.service";
serviceConfig = {
User = custom.username;
Type = "oneshot";
};
after = [ "restic-backups-${custom.username}.service" ];
script = ''
${pkgs.restic}/bin/restic \
--repo ${repository} \