Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer fails with "error: the build users group 'nixbld' has no members" #12343

Open
1 of 5 tasks
edolstra opened this issue Jan 24, 2025 · 2 comments
Open
1 of 5 tasks

Comments

@edolstra
Copy link
Member

Platform

  • Linux:
  • macOS
  • WSL

Additional information

This happened while running the upstream installer on a system that previously had Nix installed and uninstalled using the Determinate installer. It fails with:

I am executing:

    $ sudo HOME=/var/root /nix/store/vc2ag9h04naz3wgd4ggsa1fm563jhrq8-nix-2.26.0/bin/nix-env -i /nix/store/vc2ag9h04naz3wgd4ggsa1fm563jhrq8-nix-2.26.0

to install a bootstrapping Nix in to the default profile

installing 'nix-2.26.0'
error: the build users group 'nixbld' has no members

At this point the nixbld group was indeed empty:

# dscacheutil -q group -a name nixbld
name: nixbld
password: *
gid: 350

I was able to get past this by manually executing

sudo dseditgroup -o edit -a _nixbld1 -t user nixbld

and rerunning the installer.

Output

Output
% sh <(curl -L https://nixos.org/nix/install)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  4267  100  4267    0     0  11376      0 --:--:-- --:--:-- --:--:-- 11376
downloading Nix 2.26.0 binary tarball for aarch64-darwin from 'https://releases.nixos.org/nix/nix-2.26.0/nix-2.26.0-aarch64-darwin.tar.xz' to '/var/folders/rm/003qnv1s2mb4q8hxdqc5q2t00000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.NhIE1uADGu'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 26.1M  100 26.1M    0     0  34.6M      0 --:--:-- --:--:-- --:--:-- 34.6M
Switching to the Multi-user Installer
Welcome to the Multi-User Nix Installation

This installation tool will set up your computer with the Nix package
manager. This will happen in a few stages:

1. Make sure your computer doesn't already have Nix. If it does, I
   will show you instructions on how to clean up your old install.

2. Show you what I am going to install and where. Then I will ask
   if you are ready to continue.

3. Create the system users (uids [351..382]) and groups (gid 350)
   that the Nix daemon uses to run builds. To create system users
   in a different range, exit and run this tool again with
   NIX_FIRST_BUILD_UID set.

4. Perform the basic installation of the Nix files daemon.

5. Configure your shell to import special Nix Profile files, so you
   can use Nix.

6. Start the Nix daemon.

Would you like to see a more detailed list of what I will do?
[y/n] n


---- let's talk about sudo -----------------------------------------------------
This script is going to call sudo a lot. Every time I do, it'll
output exactly what it'll do, and why.

Just like this:

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo echo

to demonstrate how our sudo prompts look


This might look scary, but everything can be undone by running just a
few commands. I used to ask you to confirm each time sudo ran, but it
was too many times. Instead, I'll just ask you this one time:

Can I use sudo?
[y/n] y

Yay! Thanks! Let's get going!

~~> Fixing any leftover Nix volume state
Before I try to install, I'll check for any existing Nix volume config
and ask for your permission to remove it (so that the installer can
start fresh). I'll also ask for permission to fix any issues I spot.

---- Found existing Nix volume -------------------------------------------------
  special:      disk3s7
     uuid:      43B7EF64-0E7F-42BF-8A9E-9884836824CD
encrypted:      no

~~> Checking for artifacts of previous installs
Before I try to install, I'll check for signs Nix already is or has
been installed on this system.

---- Nix config report ---------------------------------------------------------
        Temp Dir:       /var/folders/rm/003qnv1s2mb4q8hxdqc5q2t00000gn/T/tmp.zyrDh2Gm1B
        Nix Root:       /nix
     Build Users:       32
  Build Group ID:       350
Build Group Name:       nixbld

build users:
    Username:   UID
     _nixbld1:  351
     _nixbld2:  352
     _nixbld3:  353
     _nixbld4:  354
     _nixbld5:  355
     _nixbld6:  356
     _nixbld7:  357
     _nixbld8:  358
     _nixbld9:  359
     _nixbld10: 360
     _nixbld11: 361
     _nixbld12: 362
     _nixbld13: 363
     _nixbld14: 364
     _nixbld15: 365
     _nixbld16: 366
     _nixbld17: 367
     _nixbld18: 368
     _nixbld19: 369
     _nixbld20: 370
     _nixbld21: 371
     _nixbld22: 372
     _nixbld23: 373
     _nixbld24: 374
     _nixbld25: 375
     _nixbld26: 376
     _nixbld27: 377
     _nixbld28: 378
     _nixbld29: 379
     _nixbld30: 380
     _nixbld31: 381
     _nixbld32: 382

Ready to continue?
[y/n] y


---- Preparing a Nix volume ----------------------------------------------------
    Nix traditionally stores its data in the root directory /nix, but
    macOS now (starting in 10.15 Catalina) has a read-only root directory.
    To support Nix, I will create a volume and configure macOS to mount it
    at /nix.

~~> Configuring /etc/synthetic.conf to make a mount-point at /nix

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/bin/ex -u NONE -n /etc/synthetic.conf

to add Nix to /etc/synthetic.conf


~~> Creating a Nix volume

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/sbin/diskutil unmount force disk3s7

to ensure the Nix volume is not mounted

Volume Nix Store on disk3s7 force-unmounted

~~> Configuring /etc/fstab to specify volume mount options

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/sbin/vifs

to add nix to fstab


~~> Configuring LaunchDaemon to mount 'Nix Store'

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/bin/ex -u NONE -n /Library/LaunchDaemons/org.nixos.darwin-store.plist

to install the Nix volume mounter


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo launchctl bootstrap system /Library/LaunchDaemons/org.nixos.darwin-store.plist

to launch the Nix volume mounter


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo launchctl kickstart -k system/org.nixos.darwin-store

to launch the Nix volume mounter


~~> Setting up the build group nixbld

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/sbin/dseditgroup -o create -r Nix build group for nix-daemon -i 350 nixbld

Create the Nix build group, nixbld

            Created:    Yes

~~> Setting up the build user _nixbld1
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 1
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld2
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 2
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld3
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 3
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld4
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 4
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld5
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 5
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld6
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 6
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld7
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 7
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld8
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 8
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld9
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 9
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld10
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 10
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld11
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 11
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld12
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 12
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld13
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 13
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld14
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 14
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld15
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 15
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld16
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 16
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld17
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 17
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld18
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 18
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld19
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 19
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld20
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 20
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld21
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 21
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld22
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 22
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld23
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 23
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld24
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 24
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld25
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 25
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld26
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 26
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld27
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 27
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld28
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 28
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld29
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 29
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld30
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 30
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld31
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 31
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the build user _nixbld32
            Exists:     Yes
            Hidden:     Yes
    Home Directory:     /var/empty
              Note:     Nix build user 32
   Logins Disabled:     Yes
  Member of nixbld:     Yes
    PrimaryGroupID:     350

~~> Setting up the basic directory structure

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/sbin/chown -R root:nixbld /nix

to take root ownership of existing Nix store files

chown: /nix/.Trashes: Operation not permitted
chown: /nix/.Trashes: Operation not permitted

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo install -dv -m 0755 /nix /nix/var /nix/var/log /nix/var/log/nix /nix/var/log/nix/drvs /nix/var/nix /nix/var/nix/db /nix/var/nix/gcroots /nix/var/nix/profiles /nix/var/nix/temproots /nix/var/nix/userpool /nix/var/nix/daemon-socket /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user

to make the basic directory structure of Nix (part 1)


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo install -dv -g nixbld -m 1775 /nix/store

to make the basic directory structure of Nix (part 2)


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo install -dv -m 0555 /etc/nix

to place the default nix daemon configuration (part 1)


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo install -m 0644 /var/folders/rm/003qnv1s2mb4q8hxdqc5q2t00000gn/T/tmp.zyrDh2Gm1B/.nix-channels /var/root/.nix-channels

to set up the default system channel (part 1)


~~> Installing Nix

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo cp -RPp ./store/00j5qh0m1bj6rd7yf25aibvld4nvmp5j-nix-store-2.26.0-dev ./store/0mjkx2zcq2wzd1wqx2d6xfb2mcvhg074-libcxx-16.0.6-dev ./store/0n0hifspzqzccqczwq756l2ib2lwhvqp-publicsuffix-list-0-unstable-2024-10-25 ./store/0sa8nrx4aki56q6prn2wkz1gfzh5r01i-aws-crt-cpp-0.26.12 ./store/0vys7318crrjfgh2y3g6b9hj59yjsby3-krb5-1.21.3-lib ./store/0xsji5f16mz9hjglwsz3zgb7r9graw6x-libpsl-0.21.5 ./store/0y2a624xhi55hn5n7dwqqvyh9x9ffxci-aws-c-event-stream-0.4.3 ./store/10r87kpkn4zrj0d1qhq8nfr8g2gf0imp-zlib-1.3.1 ./store/16jccnc0ba3af72a55jhd0whlvmc4jr3-libarchive-3.7.7-dev ./store/1a4j0c5xn6xl53z77sifkncg3fing1qj-openssl-3.3.2 ./store/1d6ip4wgbkygn6hp0rg5d3b10r1hyiv4-nix-fetchers-2.26.0-dev ./store/26f50gxdmqjyq2jk0qy0fa30ajvxzh0k-aws-c-common-0.9.27 ./store/2lb62bypbzny2jckmm2djgdn8h7w1h10-boehm-gc-8.2.8-dev ./store/2n8m2in3sdnaxwv44nbysnyscj5fxizi-nix-util-2.26.0 ./store/3a7j0047dvr6qfbz4hdwz1b37wcw2xiv-libssh2-1.11.1 ./store/3w1yf8cl6djijxjx7qz79xlfc7j967fr-libresolv-83 ./store/45sfwc7wanwkbsm4h1ml4z7hkk53qzcv-boost-1.81.0 ./store/4n9wa8kfphzqvszzlrc8l82zpbb8vr1r-aws-c-cal-0.6.15 ./store/51bakzkdcinxnzc93xlb7xyh43ryvh0d-nix-main-2.26.0 ./store/55b5lii1n43hvf9lhz7b3xxc9gvbg3zh-aws-checksums-0.1.18 ./store/785jvi62nwslzsfdd00dwv22bsbw8jh6-nix-util-2.26.0-dev ./store/7dkrmf9gqhwl6cz766s26j3k4a6z0n00-bash-5.2p37 ./store/8f7m2f7n7dwvmqx9b0vmkh9cdxl607n5-libunistring-1.2 ./store/8qlkfgpr2j74mhq54nydiqw75naldws6-nlohmann_json-3.11.3 ./store/8y38m02qwxgnsldqc5l5a0lqwjj36kmk-boost-1.81.0-dev ./store/a3vidhbwlm6gq2sd0lrrqcbbpijmki1l-editline-1.17.1 ./store/aiz8a3lcfjiw43lxmqbmij3gmsw2z2z7-libgit2-1.8.4-lib ./store/ak2v494v05jc7fxpc5akkj2bq9jcysjj-aws-c-mqtt-0.10.5 ./store/cdlkcn5g7si1a8s58nj4bpdbjm6bncf1-aws-c-compression-0.2.19 ./store/d3f1233sl7yip2wpkg5vqfgdvnmdb4s0-libxml2-2.13.4 ./store/dka6i6yj8sgws93wc6m0lmqzhk21kq87-libiconv-107 ./store/dlmfvqs0p02sp7cr4mrlvg3p810n6gpi-zstd-1.5.6 ./store/dnaabn46c0zmlbbwqkc7byrkn9yaw7dk-gettext-0.21.1 ./store/fi6iv7bz78i54m4iyq01qhj7zrq5v89a-aws-sdk-cpp-1.11.336 ./store/fm0y10g8wqgr99vqd1qiimbc774mzd3i-pcre2-10.44 ./store/fr428l5pfq1p7ss4kjd01848crbc4dl5-nix-expr-2.26.0-dev ./store/h18a2zbwbs8ccak4n1mqpcfj2i336zil-nix-flake-2.26.0 ./store/hdyx5jw59pcjpm7nym48n2mcq9n4wn86-libidn2-2.3.7 ./store/j39kv1qva1ndbbfc6b7rqipz5fs9pnvc-curl-8.11.0 ./store/jpj7i429d6v44ca9k1xpgyfq3kq3ng8z-nss-cacert-3.107 ./store/m6pp92l31xzgnkzm84bcf71xfj8m56ap-aws-c-s3-0.6.0 ./store/md8l82d1ggi4136ja9qdpg855z6wavip-libcxx-16.0.6 ./store/n54dylk69a8366dp2hv2pbljmmk322cw-nix-fetchers-2.26.0 ./store/nnvm0bnz2gpkvpfs2mafk0yy08wnzxkx-nix-expr-2.26.0 ./store/nv1z35sa864z04yfs570hnn9iwx5r3q6-aws-c-sdkutils-0.1.16 ./store/pdc9kk31s34akw1k229hfw73p79fkvkp-nghttp2-1.64.0-lib ./store/pynvhlbnwv4z8x9n05a41lrpjhsz6cbw-boehm-gc-8.2.8 ./store/q21pck0ph1aqa7bk1fzalhhk141z30dh-libsodium-1.0.20 ./store/r7fvblydd9smajp3asaqhm6jvqc38qmb-brotli-1.1.0-lib ./store/s3bq5z2jc9p0qbng2fbp0wn95z7y2l99-libarchive-3.7.7 ./store/sp16nb9iy4fg5vzjx01lw642knychh1j-bzip2-1.0.8 ./store/vc2ag9h04naz3wgd4ggsa1fm563jhrq8-nix-2.26.0 ./store/vimbyf55ffvkmqgqrwmhvs9kqv379kqw-aws-c-http-0.8.2 ./store/vnrh72k1q12591il6vsrfdprrl3hv2ww-nix-cmd-2.26.0 ./store/w00j1mwk5y8kx1zkj7sm1f4k91nq8z5d-nix-store-2.26.0 ./store/w3b8kbif1x6nhr6shpmj2zx3ppmdj26j-sqlite-3.46.1 ./store/w8qh8p5c27ha5izr3k4gymm8rsps58rr-aws-c-io-0.14.18 ./store/wb3pcj722fdy669g5hdnp49yz9q4fcjv-aws-c-auth-0.7.26 ./store/x9yp088bzjx5f00v3bg29y62pahr721s-xz-5.6.3 ./store/xbh7bpk5x7kx98vjmbv597r98bfbx3ia-toml11-3.7.1 ./store/xrsqvmzmj2nnd63h94d3jpd8hgr5cl9v-lowdown-1.2.0-lib ./store/y3rwm0hfsxgipx9z59glkv2yf2d9xdxs-libarchive-3.7.7-lib ./store/zc0avja428rnlxgivl00n668h0q075s3-Security-11.0 /nix/store/

to copy the basic Nix files to the new store at /nix/store


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo chmod -R ugo-w /nix/store/

to make the new store non-writable at /nix/store

      Alright! We have our first nix at /nix/store/vc2ag9h04naz3wgd4ggsa1fm563jhrq8-nix-2.26.0

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo HOME=/var/root /nix/store/vc2ag9h04naz3wgd4ggsa1fm563jhrq8-nix-2.26.0/bin/nix-store --load-db

to load data for the first time in to the Nix Database

      Just finished getting the nix database ready.

~~> Setting up shell profiles: /etc/bashrc /etc/profile.d/nix.sh /etc/zshrc /etc/bash.bashrc /etc/zsh/zshrc

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo cp /etc/bashrc /etc/bashrc.backup-before-nix

to back up your current /etc/bashrc to /etc/bashrc.backup-before-nix


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo tee -a /etc/bashrc

extend your /etc/bashrc with nix-daemon settings


# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo cp /etc/zshrc /etc/zshrc.backup-before-nix

to back up your current /etc/zshrc to /etc/zshrc.backup-before-nix


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo tee -a /etc/zshrc

extend your /etc/zshrc with nix-daemon settings


# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo cp /etc/bash.bashrc /etc/bash.bashrc.backup-before-nix

to back up your current /etc/bash.bashrc to /etc/bash.bashrc.backup-before-nix


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo tee -a /etc/bash.bashrc

extend your /etc/bash.bashrc with nix-daemon settings


# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix


~~> Setting up shell profiles for Fish with conf.d/nix.fish inside /etc/fish /usr/local/etc/fish /opt/homebrew/etc/fish /opt/local/etc/fish

~~> Setting up the default profile

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo HOME=/var/root /nix/store/vc2ag9h04naz3wgd4ggsa1fm563jhrq8-nix-2.26.0/bin/nix-env -i /nix/store/vc2ag9h04naz3wgd4ggsa1fm563jhrq8-nix-2.26.0

to install a bootstrapping Nix in to the default profile

installing 'nix-2.26.0'
error: the build users group 'nixbld' has no members

---- oh no! --------------------------------------------------------------------
Oh no, something went wrong. If you can take all the output and open
an issue, we'd love to fix the problem so nobody else has this issue.

:(

We'd love to help if you need it.

You can open an issue at
https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md

Or get in touch with the community: https://nixos.org/community

Checklist


Add 👍 to issues you find important.

@abathur
Copy link
Member

abathur commented Jan 24, 2025

The log suggests that the group was created, but that the users already existed.

I guess it could be resilient to this condition, but that also makes me wonder if something went awry during the detsys installer's uninstall to leave the users but not the group?

@edolstra
Copy link
Member Author

One thing I've noticed is that deleting nixbld users fails on this system:

$ sudo dscl . -rm /Users/_nixbld1  
<main> delete status: eDSPermissionError
<dscl_cmd> DS Error: -14120 (eDSPermissionError)

I've encountered this before but I don't recall the cause or resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants