summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-10-07 10:47:34 +0200
committertv <tv@krebsco.de>2018-10-07 10:47:34 +0200
commit396553d2587ebd8302203ea76f9b42f992cf5927 (patch)
tree71787470f8efb3105d0636261acc12fe107f9502
parent2b6391f1c3a059acea0f67e14922e61fd4ba2c1d (diff)
lib.config: mergeAttrs -> recursiveUpdate
-rw-r--r--lib/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 9361842..3132bfd 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -18,7 +18,7 @@ let {
};
config.devices = q: x:
- foldl' mergeAttrs {} (mapAttrsToList (name: config-f { device = "/dev/${name}"; }) x.content);
+ foldl' recursiveUpdate {} (mapAttrsToList (name: config-f { device = "/dev/${name}"; }) x.content);
config.luks = q: x: {
boot.initrd.luks.devices.${x.name}.device = q.device;
@@ -28,13 +28,13 @@ let {
config-f { device = "/dev/${q.vgname}/${q.name}"; } x.content;
config.lvm = q: x:
- foldl' mergeAttrs {} (mapAttrsToList (name: config-f { inherit name; vgname = x.name; }) x.lvs);
+ foldl' recursiveUpdate {} (mapAttrsToList (name: config-f { inherit name; vgname = x.name; }) x.lvs);
config.partition = q: x:
config-f { device = q.device + toString q.index; } x.content;
config.table = q: x:
- foldl' mergeAttrs {} (imap (index: config-f (q // { inherit index; })) x.partitions);
+ foldl' recursiveUpdate {} (imap (index: config-f (q // { inherit index; })) x.partitions);
create-f = q: x: create.${x.type} q x;