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