base
This commit is contained in:
parent
96eb7a6bf0
commit
ae0a5ed865
1 changed files with 14 additions and 6 deletions
20
flake.nix
20
flake.nix
|
|
@ -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
|
||||
);
|
||||
));
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue