| 14 Jan 2026 |
K900 | nix shell nixpkgs#nix should work | 07:12:53 |
K900 | Though the daemon will stay Lix | 07:13:01 |
K900 | If that's something you care about | 07:13:06 |
neobrain | Yeah I found the problem is that /nix/var/nix/profiles/default/bin is at the start of PATH, so lix will still be preferred. But patching PATH up manually is fine for me given the esoteric use case | 07:16:20 |
neobrain | The daemon speaks basically the same protocol in either case, right? I don't rely on any internals here, just stdout/stderr tool output and --json parts (hence the need to test both lix and nix) | 07:17:20 |
neobrain | * The daemon speaks basically the same protocol in either case, right? I don't rely on any internals here, just stdout/stderr tool output and --json parts (hence the need to test with both lix and nix) | 07:17:25 |
Acid Bong | In reply to @neobrain:matrix.org Yeah I found the problem is that /nix/var/nix/profiles/default/bin is at the start of PATH, so lix will still be preferred. But patching PATH up manually is fine for me given the esoteric use case normally nix-shell, nix shell and nix develop all prepend the temporary paths and only them | 07:35:40 |
Acid Bong | In reply to @neobrain:matrix.org The daemon speaks basically the same protocol in either case, right? I don't rely on any internals here, just stdout/stderr tool output and --json parts (hence the need to test with both lix and nix) at the moment yes, only parsing is client-specific (at least in terms of builtins.warn, which was added at different times to each, and pipe-operator(s), which are implemented differently in each)
i personally use Nix for everything, but build NixOS closures with Lix, cuz i like the multiline output | 07:38:18 |
0x4fbb09 it/its ⛯✇ΘΔ | # nix --version
nix (Lix, like Nix) 2.95.0-pre20260112-dev_f431464
[...]
# nix shell nixpkgs#nix
# nix --version
nix (Nix) 2.31.2+2
yeah, that should work? ... unless your shell config is weird or something ig?
| 07:46:21 |
neobrain | Huhm, interesting. Will have to check again later when I'm back at my pc | 07:47:23 |
aloisw | In reply to @acidbong:envs.net normally nix-shell, nix shell and nix develop all prepend the temporary paths and only them Before starting the shell though, so shell init files may still change it. | 11:59:57 |
neobrain | right. so the shell hooks nix/lix installed to my /etc/profile have this: export PATH="$NIX_LINK/bin:/nix/var/nix/profiles/default/bin:$PATH", which is why lix continues to be preferred | 12:02:03 |
Sofie 🏳️⚧️ (she/her) | @k900:0upti.me do you think running a homelab with data center software like open stack would be "fun", not practical but "fun" 😭 | 12:37:49 |