!9IQChSjwSHXPPWTa:lix.systems

Lix

1116 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms303 Servers

Load older messages


SenderMessageTime
16 Feb 2026
@erin:erindesu.czErin [ DEPRECATED ] changed their display name from Erin · she/they · 🏳️‍⚧️🏳️‍🌈 to Erin [ DEPRECATED ].01:50:21
@ernfoury:matrix.orgErn joined the room.02:17:17
@ernfoury:matrix.orgErnHello, I have a problem with reinstalling Lix on Darwin that I don't know how to solve.02:17:55
@ernfoury:matrix.orgErnMy nix darwin install previously broke, so I uninstalled it. It left the _nixbld users behind, so I removed them.02:18:48
@ernfoury:matrix.orgErn I then tried to install lix with
curl -sSf -L https://install.lix.systems/lix | sh -s -- install
02:19:21
@ernfoury:matrix.orgErnThe installer prompted me to escalate privileges, which I did. The installer then threw this error.02:20:32
@ernfoury:matrix.orgErn

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
@ernfoury:matrix.orgErn *
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
@ernfoury:matrix.orgErnThe revert also errored with02:23:17
@ernfoury:matrix.orgErn
   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:lossy.networkhexahrm, you might have to reboot for the kernel to release the volume02:28:05
@ernfoury:matrix.orgErnGoing to attempt that now02:28:33
@ernfoury:matrix.orgErn

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
@ernfoury:matrix.orgErnThird attempt, full success.02:36:52
@opeik:matrix.orgopeik

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:matrix.orgopeik *

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:matrix.orgopeik *

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
@oli:catgirl.cloudholly [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:matrix.orgopeikdarn, any reason why? it's very handy09:40:46
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)this ^10:05:13
@k900:0upti.meK900I think it's just that no one backported it from cppnix10:14:07
@k900:0upti.meK900And no one working on Lix wants to touch flake code that much10:14:18
@kfears:matrix.orgKFears 🏳️‍⚧️ (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 efficiently10:18:00
@k900:0upti.meK900I mean, there's a reason no one wants to touch the flake code :P10:18:54
@kfears:matrix.orgKFears 🏳️‍⚧️ (they/them)Mhm, learned that firsthand10:19:31
@kfears:matrix.orgKFears 🏳️‍⚧️ (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:matrix.orgKFears 🏳️‍⚧️ (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:0upti.meK900I mean honestly shebangs are just generally horribly cursed10:24:06
@kfears:matrix.orgKFears 🏳️‍⚧️ (they/them)Mhm, that is the impression I got11:06:53
@kfears:matrix.orgKFears 🏳️‍⚧️ (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 shebang11:07:43

There are no newer messages yet.


Back to Room ListRoom Version: 10