try to only run restic on AC power
This commit is contained in:
parent
e040baa6ef
commit
cd6320bfe7
|
@ -19,6 +19,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."restic-backups-${custom.username}" = {
|
systemd.services."restic-backups-${custom.username}" = {
|
||||||
|
unitConfig.ConditionACPower = true;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = custom.username;
|
User = custom.username;
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|
Loading…
Reference in New Issue