refactor(flake.nix): Clean up last references to a gobal pkgs

This commit is contained in:
Tristan Daniël Maat 2025-09-29 13:08:31 +08:00
parent 8757f2ad22
commit 1cf721170b
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -37,7 +37,6 @@
}@inputs: }@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
vm = nixpkgs.lib.nixosSystem { vm = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
@ -100,7 +99,7 @@
packages.${system} = { packages.${system} = {
default = vm.config.system.build.vm; default = vm.config.system.build.vm;
} }
// import ./pkgs { inherit pkgs; }; // import ./pkgs { pkgs = nixpkgs.legacyPackages.${system}; };
################### ###################
# Utility scripts # # Utility scripts #
@ -111,7 +110,7 @@
run-vm = { run-vm = {
type = "app"; type = "app";
program = program =
(pkgs.writeShellScript "" '' (nixpkgs.legacyPackages.${system}.writeShellScript "" ''
${vm.config.system.build.vm.outPath}/bin/run-testvm-vm ${vm.config.system.build.vm.outPath}/bin/run-testvm-vm
'').outPath; '').outPath;
}; };