diff --git a/lib/system.nix b/lib/system.nix index 04f70a9..37ddad5 100644 --- a/lib/system.nix +++ b/lib/system.nix @@ -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) + [] ]; }) ];