From 50dcf4c300e49a23a72350ff083f2908e5abe888 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 3 Sep 2024 19:18:37 +0530 Subject: flake/checks: use nix from inputs --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 409947c..079ae8b 100644 --- a/flake.nix +++ b/flake.nix @@ -90,9 +90,12 @@ } ); legacyPackages = forAllSystems ( - { pkgs, ... }: + { pkgs, system, ... }: + let + nixPkg = nix.packages.${system}.nix; + in { - nixosTests = pkgs.callPackage ./nixos/tests/all-tests.nix { }; + nixosTests = pkgs.callPackage ./nixos/tests/all-tests.nix { nix = nixPkg; }; } ); checks = forAllSystems ( -- cgit v1.2.3