From 1c426daf5dd88fe9a32b6357f549f7824db3c17d Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 13 Aug 2026 23:13:14 -0700 Subject: [PATCH] Specify the full path to nix-env --- modules/boot-usage.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/boot-usage.nix b/modules/boot-usage.nix index d30bd9e..c4b74af 100644 --- a/modules/boot-usage.nix +++ b/modules/boot-usage.nix @@ -58,7 +58,7 @@ open(f'/nix/var/nix/profiles/system-{line.split()[0]}-link/boot.json', 'r') )["org.nixos.bootspec.v1"] for line in subprocess.run( - ['nix-env', '--list-generations', '-p', '/nix/var/nix/profiles/system'], + [f'{NIX}/bin/nix-env', '--list-generations', '-p', '/nix/var/nix/profiles/system'], check=True, text=True, stdout=subprocess.PIPE, stderr=sys.stderr ).stdout.split('\n')[:-1] ] -- 2.51.2