]> git.scottworley.com Git - nixos-boot-usage/commitdiff
Specify the full path to nix-env
authorScott Worley <scottworley@scottworley.com>
Fri, 14 Aug 2026 06:13:14 +0000 (23:13 -0700)
committerScott Worley <scottworley@scottworley.com>
Fri, 14 Aug 2026 06:13:14 +0000 (23:13 -0700)
modules/boot-usage.nix

index d30bd9e202e73f11d8e50542b9e16f902bee0b47..c4b74afdae7414b222a0b30d34f1a3966103c6f7 100644 (file)
@@ -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(
                             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]
                           ]
                             check=True, text=True, stdout=subprocess.PIPE, stderr=sys.stderr
                           ).stdout.split('\n')[:-1]
                           ]