pkgs: readability

This commit is contained in:
Astro 2022-06-01 01:07:44 +02:00
parent bf38093194
commit 7f3124b530
1 changed files with 6 additions and 10 deletions

View File

@ -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
)
);