headless/home
This commit is contained in:
parent
a9d0f1e6b7
commit
6afe7c562d
5 changed files with 9 additions and 1 deletions
|
|
@ -37,6 +37,8 @@
|
|||
inherit (nixpkgs) lib;
|
||||
|
||||
defaultConfig = {
|
||||
headless = false;
|
||||
home = true;
|
||||
};
|
||||
|
||||
makeHost = host: let
|
||||
|
|
@ -51,7 +53,8 @@
|
|||
./hosts/${host}/hardware-configuration.nix
|
||||
./system
|
||||
{networking.hostName = host;}
|
||||
];
|
||||
] ++ lib.optionals config.headless [ ./headless ]
|
||||
++ lib.optionals config.desktop [ ./home ];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = lib.pipe ./hosts [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue