From cd6320bfe7a699db356ad4da78185ac594ef6718 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 18 Mar 2022 16:51:39 +0100 Subject: [PATCH] try to only run restic on AC power --- modules/restic/default.nix | 1 + 1 file changed, 1 insertion(+) 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";