This commit is contained in:
Spectre 2024-06-08 15:11:02 +02:00
parent 96eb7a6bf0
commit ae0a5ed865

View file

@ -64,12 +64,20 @@
mkHostConfig = host: import ./system (inputs // {conf = importHostConf host;});
in {
nixosConfigurations = builtins.listToAttrs (
map (host: {
name = host;
value = (mkHostConfig host).build;
})
nixosConfigurations = builtins.listToAttrs (lib.flatten (
map (host: let
conf = mkHostConfig host;
in [
{
name = host;
value = conf.full;
}
{
name = "${host}-base";
value = conf.base;
}
])
hosts
);
));
};
}