Include machine specific config if existent

This commit is contained in:
Manuel Thalmann 2023-12-01 15:18:19 +01:00
parent ddfbd3b8d2
commit 0f3442ab8c

View file

@ -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)
[]
]; ];
}) })
]; ];