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 = { systemd.services.prune-restic = {
User = custom.username; serviceConfig = {
serviceConfig.Type = "oneshot"; User = custom.username;
After = "restic-backups-${custom.username}.service"; Type = "oneshot";
};
after = [ "restic-backups-${custom.username}.service" ];
script = '' script = ''
${pkgs.restic}/bin/restic \ ${pkgs.restic}/bin/restic \
--repo ${repository} \ --repo ${repository} \