Include machine specific config if existent
This commit is contained in:
parent
ddfbd3b8d2
commit
0f3442ab8c
1 changed files with 4 additions and 2 deletions
|
@ -3,14 +3,16 @@
|
||||||
{ dualBoot ? false } :
|
{ dualBoot ? false } :
|
||||||
let
|
let
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
configPath = ./machines/${name}.nix;
|
||||||
in
|
in
|
||||||
lib.nixosSystem {
|
lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
(
|
(
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
imports = [
|
imports = lib.concatLists [
|
||||||
../hardware-configuration.nix
|
(lib.optional (builtins.pathExists configPath) configPath)
|
||||||
|
[]
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue