pkgs: readability
This commit is contained in:
parent
bf38093194
commit
7f3124b530
|
@ -71,17 +71,13 @@ let
|
||||||
|
|
||||||
openwrt = import ./openwrt { inherit self nixpkgs system openwrt-imagebuilder; };
|
openwrt = import ./openwrt { inherit self nixpkgs system openwrt-imagebuilder; };
|
||||||
|
|
||||||
openwrt-images = builtins.foldl' (images: hostName:
|
openwrt-images = builtins.foldl' (images: hostName: images // {
|
||||||
let
|
"${hostName}-image" = openwrt.buildImage hostName;
|
||||||
image = openwrt.buildImage hostName;
|
}) {} (
|
||||||
in
|
|
||||||
images // {
|
|
||||||
"${hostName}-image" = image;
|
|
||||||
}
|
|
||||||
) {} (
|
|
||||||
builtins.attrNames (
|
builtins.attrNames (
|
||||||
nixpkgs.lib.filterAttrs (_: { role, ... }: role == "ap")
|
nixpkgs.lib.filterAttrs (_: { role, ... }:
|
||||||
config.site.hosts
|
role == "ap"
|
||||||
|
) config.site.hosts
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user