diff --git a/hosts/default.nix b/hosts/default.nix index 140a152..5386262 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -1,22 +1,29 @@ { unstable, stable2009 }: let + + commonModules = [ + ../. + ({ ... }: { + config = { + sconfig.flakes.enable = true; + sconfig.flakes.rebuildPath = "github:buckley310/nixos-config"; + }; + }) + ]; + mkStandardSystem = { name, pkgs }: pkgs.lib.nixosSystem { system = "x86_64-linux"; - modules = [ + modules = commonModules ++ [ pkgs.nixosModules.notDetected - ({ ... }: { config = { sconfig.flakes.enable = true; }; }) (./. + "/configuration_${name}.nix") - ../. ]; }; mkQemuSystem = { name, pkgs }: pkgs.lib.nixosSystem { system = "x86_64-linux"; - modules = [ - ({ modulesPath, ... }: { imports = [ "${modulesPath}/profiles/qemu-guest.nix" ]; }) - ({ ... }: { config = { sconfig.flakes.enable = true; }; }) + modules = commonModules ++ [ + (x: { imports = [ "${x.modulesPath}/profiles/qemu-guest.nix" ]; }) (./. + "/configuration_${name}.nix") - ../. ]; };