system
This commit is contained in:
parent
b35442d180
commit
52c4a98610
3 changed files with 17 additions and 6 deletions
15
flake.nix
15
flake.nix
|
|
@ -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
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue