headless/home

This commit is contained in:
Lilith 2025-02-27 00:08:36 +01:00
parent a9d0f1e6b7
commit 6afe7c562d
Signed by: lilith
GPG key ID: 8712A0F317C37175
5 changed files with 9 additions and 1 deletions

View file

@ -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 [