From 823b5e67ed00be50b6f017ba9e2150acb766c85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 12 Mar 2024 13:17:04 +0100 Subject: [PATCH] fix backup not beeing activated --- clanModules/borgbackup.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clanModules/borgbackup.nix b/clanModules/borgbackup.nix index 90a2b086f..d7ded0902 100644 --- a/clanModules/borgbackup.nix +++ b/clanModules/borgbackup.nix @@ -31,7 +31,7 @@ in imports = [ (lib.mkRemovedOptionModule [ "clan" "borgbackup" "enable" ] "Just define clan.borgbackup.destinations to enable it") ]; - config = lib.mkIf (cfg.destinations != [ ]) { + config = lib.mkIf (cfg.destinations != { }) { services.borgbackup.jobs = lib.mapAttrs (_: dest: { paths = lib.flatten (map (state: state.folders) (lib.attrValues config.clanCore.state));