try to only run restic on AC power

This commit is contained in:
Andreas Zweili 2022-03-18 16:51:39 +01:00
parent e040baa6ef
commit cd6320bfe7
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ in
};
systemd.services."restic-backups-${custom.username}" = {
unitConfig.ConditionACPower = true;
serviceConfig = {
User = custom.username;
Type = "oneshot";