diff options
Diffstat (limited to 'lib/mk_system.nix')
-rw-r--r-- | lib/mk_system.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/mk_system.nix b/lib/mk_system.nix index ee0037b..d6a6d79 100644 --- a/lib/mk_system.nix +++ b/lib/mk_system.nix @@ -1,11 +1,11 @@ { self, ... } @ args: -name: nixpkgs: +{ name, nixpkgs, extraModules }: nixpkgs.lib.nixosSystem ( let - configFolder = "${self}/nixos/configurations"; - entryPoint = "${configFolder}/${name}.nix"; - hardware = "${configFolder}/hardware/${name}.nix"; + configFolder = "${self}/nixos"; + entryPoint = "${configFolder}/${name}/configuration.nix"; + hardware = "${configFolder}/${name}/hardware-configuration.nix"; in { system = "x86_64-linux"; @@ -20,6 +20,8 @@ nixpkgs.lib.nixosSystem ( } entryPoint hardware - ] ++ __attrValues self.nixosModules; + ../nixos/modules/flake.nix + ../nixos/modules/nix.nix + ] ++ nixpkgs.lib.optionals (extraModules != null) extraModules; } ) |