diff --git a/default.nix b/default.nix index b194d9d..4c3b284 100644 --- a/default.nix +++ b/default.nix @@ -47,10 +47,10 @@ ]; config.contentAddressedByDefault = true; }; - pkgsFor = localSystem: args: + pkgsFor = system: args: import nixpkgs (args // { - inherit localSystem; + localSystem = localSystems.${system}; overlays = [ (_: _: { nixpkgs-unpatched = nixpkgs-unpatched'; @@ -58,7 +58,20 @@ (import ./overlay.nix) ]; }); + keepBuilt = system: let + pkgs = pkgsFor system {}; + in { + inherit (pkgs) nixos-rebuild; + }; in { inherit (pkgs-unpatched) nixpkgs; inherit pkgsFor; + x86_64-linux = keepBuilt "x86_64-linux"; + aarch64-linux = keepBuilt "aarch64-linux"; + default = keepBuilt "default"; + skylake = keepBuilt "skylake"; + skylake-avx512 = keepBuilt "skylake-avx512"; + neoverse-n1 = keepBuilt "neoverse-n1"; + znver1 = keepBuilt "znver1"; + znver2 = keepBuilt "znver2"; }