fix(flake): don't build __template__ machines

This commit is contained in:
reo101 2023-09-07 01:17:53 +03:00
parent bf2bbb2446
commit 64950f00f3
Signed by: reo101
GPG key ID: 675AA7EF13964ACB

View file

@ -228,15 +228,17 @@ rec {
(builtins.attrValues
(builtins.mapAttrs
(system: hosts:
lib.filterAttrs
lib.concatMapAttrs
(host: config:
config != null)
(builtins.mapAttrs
(host: config:
if (pred system host config)
then mkHost system host config
else null)
hosts))
lib.optionalAttrs
(and [
(host != "__template__")
(pred system host config)
])
{
${host} = mkHost system host config;
})
hosts)
machines));
# Configurations