fix backup not beeing activated
This commit is contained in:
@@ -31,7 +31,7 @@ in
|
|||||||
|
|
||||||
imports = [ (lib.mkRemovedOptionModule [ "clan" "borgbackup" "enable" ] "Just define clan.borgbackup.destinations to enable it") ];
|
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
|
services.borgbackup.jobs = lib.mapAttrs
|
||||||
(_: dest: {
|
(_: dest: {
|
||||||
paths = lib.flatten (map (state: state.folders) (lib.attrValues config.clanCore.state));
|
paths = lib.flatten (map (state: state.folders) (lib.attrValues config.clanCore.state));
|
||||||
|
|||||||
Reference in New Issue
Block a user