This commit is contained in:
Lilith 2025-02-27 00:37:57 +01:00
parent 240a322ec6
commit 72cd7b3696
Signed by: lilith
GPG key ID: 8712A0F317C37175
3 changed files with 57 additions and 5 deletions

View file

@ -32,13 +32,13 @@
outputs = {
self,
nixpkgs,
home-manager,
...
} @ inputs: let
inherit (nixpkgs) lib;
defaultConfig = {
headless = false;
home = true;
desktop = true;
};
makeHost = host: let
@ -53,8 +53,11 @@
./hosts/${host}/hardware-configuration.nix
./system
{networking.hostName = host;}
] ++ lib.optionals config.headless [ ./headless ]
++ lib.optionals config.desktop [ ./home ];
]
++ lib.optionals config.desktop [
home-manager
./home
];
};
in {
nixosConfigurations = lib.pipe ./hosts [