From 7ff710f6127928ebfa02221f5fec3a8336805000 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Tue, 26 Mar 2024 15:44:25 -0700 Subject: [PATCH] Make legacyPackages look like `pkgs` in a nixos module This change the package set in `legacyPackages.` look the same as it would in a nixos module using jetpack-nixos, so the same `pkgs.nvidia-jetpack` is present in both. --- flake.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 9e563264..f51e7f18 100644 --- a/flake.nix +++ b/flake.nix @@ -57,7 +57,11 @@ self.legacyPackages; # Not everything here should be cross-compiled to aarch64-linux - legacyPackages.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.callPackage ./default.nix { }; - legacyPackages.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.callPackage ./default.nix { }; + legacyPackages = nixpkgs.lib.genAttrs + [ "x86_64-linux" "aarch64-linux" ] + (system: import nixpkgs { + inherit system; + overlays = [ self.overlays.default ]; + }); }; }