correct systemd options

This commit is contained in:
Andreas Zweili 2022-02-28 16:56:32 +01:00
parent 6989e9932b
commit 59ef08b93f

View File

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