X-Git-Url: http://git.scottworley.com/nixos-boot-usage/blobdiff_plain/a47c58267d5b250d6f34d7c1994418135c657713..ce38b3aedd693c041e1db21dad4cacbfbdf4d5b1:/modules/boot-usage.nix diff --git a/modules/boot-usage.nix b/modules/boot-usage.nix index d30bd9e..8d820d0 100644 --- a/modules/boot-usage.nix +++ b/modules/boot-usage.nix @@ -58,14 +58,13 @@ 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] ] ) ) - ], - start=1 + ] ), (0, set()) )[0]