diff --git a/modules/restic/default.nix b/modules/restic/default.nix index e0a459c..82972e9 100644 --- a/modules/restic/default.nix +++ b/modules/restic/default.nix @@ -19,6 +19,7 @@ in }; systemd.services."restic-backups-${custom.username}" = { + unitConfig.ConditionACPower = true; serviceConfig = { User = custom.username; Type = "oneshot";