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 } :
|
||||
let
|
||||
lib = nixpkgs.lib;
|
||||
configPath = ./machines/${name}.nix;
|
||||
in
|
||||
lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
(
|
||||
{ config, pkgs, ... }: {
|
||||
imports = [
|
||||
../hardware-configuration.nix
|
||||
imports = lib.concatLists [
|
||||
(lib.optional (builtins.pathExists configPath) configPath)
|
||||
[]
|
||||
];
|
||||
})
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue