Skip to content

Commit

Permalink
nixos/services.snapraid: re-add missing lib. for lib imports
Browse files Browse the repository at this point in the history
Related NixOS#335631
  • Loading branch information
davidkna committed Sep 16, 2024
1 parent e6cfe78 commit b6fed52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos/modules/services/backup/snapraid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ in
lib.concatStringsSep "\n"
(map prependData
((lib.mapAttrsToList (name: value: name + " " + value)) dataDisks)
++ zipListsWith (a: b: a + b)
([ "parity " ] ++ map (i: toString i + "-parity ") (range 2 6))
++ lib.zipListsWith (a: b: a + b)
([ "parity " ] ++ map (i: toString i + "-parity ") (lib.range 2 6))
parityFiles ++ map prependContent contentFiles
++ map prependExclude exclude) + "\n" + extraConfig;
};
Expand Down Expand Up @@ -222,7 +222,7 @@ in
# Multiple "split" parity files can be specified in a single
# "parityFile", separated by a comma.
# https://www.snapraid.it/manual#7.1
splitParityFiles = map (s: splitString "," s) parityFiles;
splitParityFiles = map (s: lib.splitString "," s) parityFiles;
in
lib.unique (
lib.attrValues dataDisks ++ splitParityFiles ++ contentDirs
Expand Down

0 comments on commit b6fed52

Please sign in to comment.