base
This commit is contained in:
parent
96eb7a6bf0
commit
ae0a5ed865
1 changed files with 14 additions and 6 deletions
18
flake.nix
18
flake.nix
|
|
@ -64,12 +64,20 @@
|
||||||
|
|
||||||
mkHostConfig = host: import ./system (inputs // {conf = importHostConf host;});
|
mkHostConfig = host: import ./system (inputs // {conf = importHostConf host;});
|
||||||
in {
|
in {
|
||||||
nixosConfigurations = builtins.listToAttrs (
|
nixosConfigurations = builtins.listToAttrs (lib.flatten (
|
||||||
map (host: {
|
map (host: let
|
||||||
|
conf = mkHostConfig host;
|
||||||
|
in [
|
||||||
|
{
|
||||||
name = host;
|
name = host;
|
||||||
value = (mkHostConfig host).build;
|
value = conf.full;
|
||||||
})
|
}
|
||||||
|
{
|
||||||
|
name = "${host}-base";
|
||||||
|
value = conf.base;
|
||||||
|
}
|
||||||
|
])
|
||||||
hosts
|
hosts
|
||||||
);
|
));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue