Import base.nix
by default
This commit is contained in:
parent
64fa5c60c0
commit
cf598aca71
1 changed files with 7 additions and 3 deletions
|
@ -4,15 +4,19 @@
|
|||
let
|
||||
lib = nixpkgs.lib;
|
||||
configPath = ./machines/${name}.nix;
|
||||
machineConfig =
|
||||
if builtins.pathExists configPath then
|
||||
configPath
|
||||
else
|
||||
./hardware/base.nix;
|
||||
in
|
||||
lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
(
|
||||
{ config, pkgs, ... }: {
|
||||
imports = lib.concatLists [
|
||||
(lib.optional (builtins.pathExists configPath) configPath)
|
||||
[]
|
||||
imports = [
|
||||
machineConfig
|
||||
];
|
||||
})
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue