mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 12:45:27 +03:00
nixos/services.snapraid: re-add missing lib.
for lib
imports
Related #335631
This commit is contained in:
parent
e6cfe7821d
commit
b6fed52cbc
1 changed files with 3 additions and 3 deletions
|
@ -128,8 +128,8 @@ in
|
||||||
lib.concatStringsSep "\n"
|
lib.concatStringsSep "\n"
|
||||||
(map prependData
|
(map prependData
|
||||||
((lib.mapAttrsToList (name: value: name + " " + value)) dataDisks)
|
((lib.mapAttrsToList (name: value: name + " " + value)) dataDisks)
|
||||||
++ zipListsWith (a: b: a + b)
|
++ lib.zipListsWith (a: b: a + b)
|
||||||
([ "parity " ] ++ map (i: toString i + "-parity ") (range 2 6))
|
([ "parity " ] ++ map (i: toString i + "-parity ") (lib.range 2 6))
|
||||||
parityFiles ++ map prependContent contentFiles
|
parityFiles ++ map prependContent contentFiles
|
||||||
++ map prependExclude exclude) + "\n" + extraConfig;
|
++ map prependExclude exclude) + "\n" + extraConfig;
|
||||||
};
|
};
|
||||||
|
@ -222,7 +222,7 @@ in
|
||||||
# Multiple "split" parity files can be specified in a single
|
# Multiple "split" parity files can be specified in a single
|
||||||
# "parityFile", separated by a comma.
|
# "parityFile", separated by a comma.
|
||||||
# https://www.snapraid.it/manual#7.1
|
# https://www.snapraid.it/manual#7.1
|
||||||
splitParityFiles = map (s: splitString "," s) parityFiles;
|
splitParityFiles = map (s: lib.splitString "," s) parityFiles;
|
||||||
in
|
in
|
||||||
lib.unique (
|
lib.unique (
|
||||||
lib.attrValues dataDisks ++ splitParityFiles ++ contentDirs
|
lib.attrValues dataDisks ++ splitParityFiles ++ contentDirs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue