This commit is contained in:
Lilith 2025-02-27 02:00:40 +01:00
parent b35442d180
commit 52c4a98610
Signed by: lilith
GPG key ID: 8712A0F317C37175
3 changed files with 17 additions and 6 deletions

View file

@ -39,14 +39,21 @@
defaultConfig = {
desktop = true;
unfree = [
"steam"
"steam-unwrapped"
];
};
makeHost = host: let
config = defaultConfig // import ./hosts/${host}/config.nix;
conf = defaultConfig // import ./hosts/${host}/config.nix;
in
lib.nixosSystem {
system = config.system;
pkgs = import nixpkgs {system = config.system;};
system = conf.system;
pkgs = import nixpkgs {
system = conf.system;
config.allowUnfreePredicate = ( pkg: builtins.elem (lib.getName pkg) conf.unfree );
};
specialArgs = inputs;
modules = [
./hosts/${host}/default.nix
@ -54,7 +61,7 @@
./system
{networking.hostName = host;}
]
++ lib.optionals config.desktop [
++ lib.optionals conf.desktop [
./home
];
};