| 16 Feb 2026 |
| Erin [ DEPRECATED ] changed their display name from Erin · she/they · 🏳️⚧️🏳️🌈 to Erin [ DEPRECATED ]. | 01:50:21 |
| Ern joined the room. | 02:17:17 |
Ern | Hello, I have a problem with reinstalling Lix on Darwin that I don't know how to solve. | 02:17:55 |
Ern | My nix darwin install previously broke, so I uninstalled it. It left the _nixbld users behind, so I removed them. | 02:18:48 |
Ern | I then tried to install lix with
curl -sSf -L https://install.lix.systems/lix | sh -s -- install | 02:19:21 |
Ern | The installer prompted me to escalate privileges, which I did. The installer then threw this error. | 02:20:32 |
Ern | INFO Step: Configure Nix
ERROR
0: Install failure
1: Error executing action
2: Action configure_nix errored
3: Action setup_default_profile errored
4: Failed to execute command with status 1 HOME="/Users/ernnn" "/nix/store/gxpdrn2sw1xpymxmsrxc7c706b7higws-lix-2.94.0/bin/nix-store" "--load-db", stdout:
stderr: warning: $HOME ('/Users/ernnn') is not owned by you, falling back to the one defined in the 'passwd' file ('/var/root')
error: you don't have sufficient rights to use this command
4:
Location:
src/cli/subcommand/install.rs:300 | 02:21:56 |
Ern | * ERROR
0: Install failure
1: Error executing action
2: Action `configure_nix` errored
3: Action `setup_default_profile` errored
4: Failed to execute command with status 1 `HOME="/Users/ernnn" "/nix/store/gxpdrn2sw1xpymxmsrxc7c706b7higws-lix-2.94.0/bin/nix-store" "--load-db"`, stdout:
stderr: warning: $HOME ('/Users/ernnn') is not owned by you, falling back to the one defined in the 'passwd' file ('/var/root')
error: you don't have sufficient rights to use this command
4:
Location:
src/cli/subcommand/install.rs:300```
| 02:22:16 |
Ern | The revert also errored with | 02:23:17 |
Ern | 0: Action `create_apfs_volume` errored
1: Failed to execute command with status 1 `"/usr/sbin/diskutil" "apfs" "deleteVolume" "Nix Store"`, stdout: Started APFS operation
Deleting APFS Volume from its APFS Container
Unmounting disk3s7
The volume "Nix Store" on disk3s7 couldn't be unmounted because it is in use by process 0 (kernel)
stderr: Error: -69888: Couldn't unmount disk
1:
| 02:23:23 |
hexa | hrm, you might have to reboot for the kernel to release the volume | 02:28:05 |
Ern | Going to attempt that now | 02:28:33 |
Ern | restarted, reran, new error
INFO Step: Provision Nix
ERROR
0: Install failure
1: Error executing action
2: Action `provision_nix` errored
3: Action `fetch_and_unpack_nix` errored
4: Unarchiving error
5: trying to unpack outside of destination path: /nix/temp-install-dir
6: Invalid argument
Location:
src/cli/subcommand/install.rs:300
Revert worked successfully this time. | 02:33:07 |
Ern | Third attempt, full success. | 02:36:52 |
opeik | i think the nix shell shebangs are broken?
#!/usr/bin/env nix
#! nix shell nixpkgs#bash nixpkgs#hello nixpkgs#cowsay --command bash
hello | cowsay
outputs:
error: 'wat.sh' is not a recognised command
Try 'nix --help' for more information.
on:
✦ ❯ : nix --version
nix (Lix, like Nix) 2.93.3
System type: aarch64-darwin
Additional system types: x86_64-darwin
| 08:11:28 |
opeik | * i think the nix shell shebangs are broken?
#!/usr/bin/env nix
#! nix shell nixpkgs#bash nixpkgs#hello nixpkgs#cowsay --command bash
hello | cowsay
outputs:
error: 'wat.sh' is not a recognised command
Try 'nix --help' for more information.
on:
✦ ❯ : nix --version
nix (Lix, like Nix) 2.93.3
System type: aarch64-darwin
Additional system types: x86_64-darwin
| 08:11:46 |
opeik | * i think the nix shell shebangs are broken?
#!/usr/bin/env nix
#! nix shell nixpkgs#bash nixpkgs#hello nixpkgs#cowsay --command bash
hello | cowsay
outputs:
error: 'wat.sh' is not a recognised command
Try 'nix --help' for more information.
on:
❯ : nix --version
nix (Lix, like Nix) 2.93.3
System type: aarch64-darwin
Additional system types: x86_64-darwin
| 08:12:34 |
holly [she/it] 🏳️⚧️ | i've seen discussion about this before, if i'm remembering correctly it's not implemented for nix3 cli in lix | 09:08:18 |
opeik | darn, any reason why? it's very handy | 09:40:46 |
Sofie 🏳️⚧️ (she/her) | this ^ | 10:05:13 |
K900 | I think it's just that no one backported it from cppnix | 10:14:07 |
K900 | And no one working on Lix wants to touch flake code that much | 10:14:18 |
KFears 🏳️⚧️ (they/them) | I have attempted to backport it a while ago and it was a challenge. The code is not easy to understand, and I felt a lack of knowledge in both Lix and CppNix codebases to do it efficiently | 10:18:00 |
K900 | I mean, there's a reason no one wants to touch the flake code :P | 10:18:54 |
KFears 🏳️⚧️ (they/them) | Mhm, learned that firsthand | 10:19:31 |
KFears 🏳️⚧️ (they/them) | (I also never knew how such shebangs are implemented, and this is a very specific amalgamation of checks that enables it, like I think the command needs to check its arguments and see how and where it's invoked and then manually read the next line of the file or something like that) | 10:21:06 |
KFears 🏳️⚧️ (they/them) | (and I became kinda uncomfortable with doing this kind of feature in general, because of how special-case it is) | 10:21:35 |
K900 | I mean honestly shebangs are just generally horribly cursed | 10:24:06 |
KFears 🏳️⚧️ (they/them) | Mhm, that is the impression I got | 11:06:53 |
KFears 🏳️⚧️ (they/them) | So I would aim instead to create some nice-r UX for using general Nix commands and/or code for scripts, than hacking together a shebang | 11:07:43 |