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-images = builtins.foldl' (images: hostName:
|
||||
let
|
||||
image = openwrt.buildImage hostName;
|
||||
in
|
||||
images // {
|
||||
"${hostName}-image" = image;
|
||||
}
|
||||
) {} (
|
||||
openwrt-images = builtins.foldl' (images: hostName: images // {
|
||||
"${hostName}-image" = openwrt.buildImage hostName;
|
||||
}) {} (
|
||||
builtins.attrNames (
|
||||
nixpkgs.lib.filterAttrs (_: { role, ... }: role == "ap")
|
||||
config.site.hosts
|
||||
nixpkgs.lib.filterAttrs (_: { role, ... }:
|
||||
role == "ap"
|
||||
) config.site.hosts
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue