From 1cf721170b5bc6f8ecd7be2ebcec3e002fc26bfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Mon, 29 Sep 2025 13:08:31 +0800 Subject: [PATCH] refactor(flake.nix): Clean up last references to a gobal `pkgs` --- flake.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index b919304..76d612f 100644 --- a/flake.nix +++ b/flake.nix @@ -37,7 +37,6 @@ }@inputs: let system = "x86_64-linux"; - pkgs = nixpkgs.legacyPackages.${system}; vm = nixpkgs.lib.nixosSystem { inherit system; @@ -100,7 +99,7 @@ packages.${system} = { default = vm.config.system.build.vm; } - // import ./pkgs { inherit pkgs; }; + // import ./pkgs { pkgs = nixpkgs.legacyPackages.${system}; }; ################### # Utility scripts # @@ -111,7 +110,7 @@ run-vm = { type = "app"; program = - (pkgs.writeShellScript "" '' + (nixpkgs.legacyPackages.${system}.writeShellScript "" '' ${vm.config.system.build.vm.outPath}/bin/run-testvm-vm '').outPath; };