-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
LaunchDaemon doesn't start on mac #15589
Copy link
Copy link
Open
Labels
Description
Platform
- Linux:
- macOS
- WSL
Additional information
I tried it three times, it doesn't help. I can use the nix shell, but I see this error. I'm using MacOS 26.3.1 (25D2128).
Output
Output
sh <(curl --proto '=https' --tlsv1.2 -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 14080 0 --:--:-- --:--:-- --:--:-- 14080
downloading Nix 2.34.4 binary tarball for aarch64-darwin from 'https://releases.nixos.org/nix/nix-2.34.4/nix-2.34.4-aarch64-darwin.tar.xz' to '/var/folders/k8/5w36w_9x7bx7zvz98sg1_wjh0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.6hMuPIGY8B'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17.1M 100 17.1M 0 0 13.1M 0 0:00:01 0:00:01 --:--:-- 13.0M
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: B8CE1F78-F141-4E82-8F05-F5AD2AC2AB84
encrypted: yes
---- sudo execution ------------------------------------------------------------
---- sudo execution ------------------------------------------------------------
I am executing:
I am executing:
$ sudo security find-generic-password -s B8CE1F78-F141-4E82-8F05-F5AD2AC2AB84 -w
$ sudo /usr/sbin/diskutil apfs unlockVolume disk3s7 -verify -stdinpassphrase -user B8CE1F78-F141-4E82-8F05-F5AD2AC2AB84
to confirm the password actually unlocks the volume
to confirm keychain has a password that unlocks this volume
Verifying the specific cryptographic user B8CE1F78-F141-4E82-8F05-F5AD2AC2AB84 on APFS Volume disk3s7
Passphrase valid
Found a working decryption password in keychain :)
~~> 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.
---- warning! ------------------------------------------------------------------
Nix already appears to be installed. This installer may run into issues.
If an error occurs, try manually uninstalling, then rerunning this script.
Uninstalling nix:
1. Remove macOS-specific components:
- Uninstall LaunchDaemon org.nixos.nix-daemon
sudo launchctl bootout system/org.nixos.nix-daemon
sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist
2. Delete the files Nix added to your system:
sudo rm -rf "/etc/nix" "/nix" "/var/root/.nix-profile" "/var/root/.nix-defexpr" "/var/root/.nix-channels" "/var/root/.local/state/nix" "/var/root/.cache/nix" "/Users/stefan/.nix-profile" "/Users/stefan/.nix-defexpr" "/Users/stefan/.nix-channels" "/Users/stefan/.local/state/nix" "/Users/stefan/.cache/nix"
and that is it.
---- Nix config report ---------------------------------------------------------
Temp Dir: /var/folders/k8/5w36w_9x7bx7zvz98sg1_wjh0000gn/T/tmp.3XPsWPcvNq
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
/nix/var/nix/profiles/default/bin/nix-env
~~> Setting up the build group nixbld
Exists: 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
---- 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/k8/5w36w_9x7bx7zvz98sg1_wjh0000gn/T/tmp.3XPsWPcvNq/.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/0ysgw3mj93hvkcsc6vv4nlwzrzhkscw2-gettext-0.25.1 ./store/1ww0ar4d39mjq1wlblnsmrfqd3m8qv8x-brotli-1.1.0-lib ./store/2pjjr5142mhjbgih66i5fmqvpd5d8gi0-aws-c-s3-0.8.7 ./store/3wbakhrwf15l9m78wpy4zjn9xpnhxcjb-openssl-3.6.1 ./store/46dvdkdq964xpgwc007im11y1j783pk7-aws-checksums-0.2.7 ./store/51plr3cgnibvj44ivycz2v34afprv28z-nix-util-2.34.4 ./store/6a00nqkgvn3ipjy43ymgwhlwvxj8fws1-boehm-gc-8.2.8 ./store/6jn544way2r4jnvpnknv1q25b3flpmdr-aws-c-io-0.22.0 ./store/6mjdaiws0ypcd787867ryxpq6l1kpap2-libgit2-1.9.2-lib ./store/78mki0flwndlvfr79bxqz1q4mz4misaj-zstd-1.5.7 ./store/8cj4d4ydq5q3130j99xfpxkfhxmypaks-nghttp2-1.67.1-lib ./store/a5rxxcslmcvm987j9acr8b1bwx7yfmvh-nss-cacert-3.117 ./store/a8b7vhp13ds4nqax4fpjnkivqbn238zs-ngtcp2-1.17.0 ./store/ak5yaspvf1kdc47lfbh55953v6iw3nvm-nix-main-2.34.4 ./store/ccpmvnkqh9vi1gpdj3lnv4gpgyybk3dr-libresolv-91 ./store/clrp3vazp6dp7a56ybsah09fjkpaa3am-sqlite-3.50.4 ./store/cs49r7f2c95na5bkfxvk5dd8d2qajy1j-zlib-1.3.1 ./store/dbshyjv3cn2blh9zapcbnz4qmnir0wdn-aws-c-auth-0.9.1 ./store/di0dfcns0y6cgxhkf06qnqk4ma7mkdwx-nix-fetchers-2.34.4 ./store/dqvv8qqdhydkcnicdi052r4813hs1ihk-libunistring-1.4.1 ./store/f3r6dhrqgyqw2di6h8hncn5gpi35zxlr-nghttp3-1.12.0 ./store/fvg8nwh7xvp2vkyqp3p4dlfybjv9xq7j-nix-flake-2.34.4 ./store/gaj99giq75mcaz858mkq5qpyzy5vzazd-libssh2-1.11.1 ./store/glscy0ghvh30q5msvdda45j12i0ifrqk-hwloc-2.12.2-lib ./store/gvbrrp0d8siy7ypla5lf9mrwgq0hnvfq-krb5-1.22.1-lib ./store/hrbk3aby94wbj8pz753s8z7cd00hqcgh-aws-c-cal-0.9.2 ./store/i2yfb9hqscbws8nqw7hkdq811x5fyc1n-bash-5.3p3 ./store/ic33v3wbwy25fak86li5jjzqgmk5qnx8-libiconv-1.18 ./store/jbapvj46hsdy22405xl9bnahw9lhmh2b-editline-1.17.1-unstable-2025-05-24 ./store/jkdc2a41bs5krvz3cbsp1gvhbzvrrc1b-pcre2-10.46 ./store/jn6gflmvv56zii3p5anwpx75a9483jcn-libxml2-2.15.1 ./store/k6fa76af1dnmsq2w0vxg15mc376pgjy1-libblake3-1.8.2 ./store/k6rg7ds3g04yxkzly4ddhrzsj42c6627-publicsuffix-list-0-unstable-2025-12-28 ./store/kixjszg8ip0f7ynxkgxiqirnq0xkc3zp-aws-c-mqtt-0.13.3 ./store/lx1avbg8s4yyvdkc2yk8nc2wpnlssl98-nix-manual-2.34.4-man ./store/mnn7h68dkzrbmrhmskw5ifvdrbsbgq0x-libidn2-2.3.8 ./store/mqrqfxcxl6xmcppyibv468rz7va1f0kp-aws-c-common-0.12.4 ./store/nak21rqmg8n1zbjx76zzxpppc0amkpzh-llhttp-9.3.0 ./store/pkvy3ir6rphk0qy1g7ljwfcpdr134jw6-bzip2-1.0.8 ./store/q0hsmd5pfp0yvabzv7yfzmy85qznvznp-aws-c-sdkutils-0.2.4 ./store/q4026kl6ilq7s21lq9qzsbim121yddvv-lowdown-2.0.2-lib ./store/rrk2kk239ppsyh51c90g5lsq6cpy2vi6-libarchive-3.8.4-lib ./store/rz17k4fl8gc5pgnw01v3msqj0s9dmzqh-nix-2.34.4 ./store/s59rwsgg17ykxz38dbavpyrb42ns1s7r-aws-c-event-stream-0.5.7 ./store/v18baqas3w6wjzx3x6cn9s02lzi2f2xg-nix-expr-2.34.4 ./store/vkmqjpczisjm73chy2kpn3mzss3wcdn1-nix-cmd-2.34.4 ./store/vmmbqfcqcmfx73wwlh38mxari4y37s1x-aws-c-compression-0.3.1 ./store/vxn7jab9g7rwlc7walbxhd64cnp362kn-onetbb-2022.3.0 ./store/wil2n2k2d42byc04ik3xrhzhfwkrnfrn-boost-1.87.0 ./store/xhz6xh4dvkkzckrzlwzkwf7bjc5mirh3-aws-c-http-0.10.4 ./store/xymcbj77fqqy8vvqyhavmm0gniipymnb-libpsl-0.21.5 ./store/y5m7hs3fkdaw2m22q2gb8gk534viva9a-nix-store-2.34.4 ./store/yqfm47lvagaz3j2bcbsla6wilgn5d44x-aws-crt-cpp-0.34.3 ./store/ys98dksb303slz7w12kvais9nn8vval7-xz-5.8.1 ./store/yv44dlhi4izggr7lj2ga6zxrnpp3v5px-libsodium-1.0.20-unstable-2025-12-31 ./store/z0js5qvnjwk77qvxzd0g0x093c706lpf-curl-8.18.0 ./store/z33ilm1n93y6r7ci4c0n6wny78jf9znx-libiconv-109.100.2 /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/rz17k4fl8gc5pgnw01v3msqj0s9dmzqh-nix-2.34.4
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo HOME=/var/root /nix/store/rz17k4fl8gc5pgnw01v3msqj0s9dmzqh-nix-2.34.4/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 /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 /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
# System-wide profile for interactive zsh(1) shells.
# Setup user specific overrides for this in ~/.zshrc. See zshbuiltins(1)
# and zshoptions(1) for more details.
# Correctly display UTF-8 with combining characters. We'll assume UTF-8 if the
# locale(1) binary is missing entirely.
if [[ ! -x /usr/bin/locale ]] || [[ "$(locale LC_CTYPE)" == "UTF-8" ]]; then
setopt COMBINING_CHARS
fi
# Disable the log builtin, so we don't conflict with /usr/bin/log
disable log
# Save command history
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
HISTSIZE=2000
SAVEHIST=1000
# Beep on error
setopt BEEP
# Use keycodes (generated via zkbd) if present, otherwise fallback on
# values from terminfo
if [[ -r ${ZDOTDIR:-$HOME}/.zkbd/${TERM}-${VENDOR} ]] ; then
source ${ZDOTDIR:-$HOME}/.zkbd/${TERM}-${VENDOR}
else
typeset -g -A key
[[ -n "$terminfo[kf1]" ]] && key[F1]=$terminfo[kf1]
[[ -n "$terminfo[kf2]" ]] && key[F2]=$terminfo[kf2]
[[ -n "$terminfo[kf3]" ]] && key[F3]=$terminfo[kf3]
[[ -n "$terminfo[kf4]" ]] && key[F4]=$terminfo[kf4]
[[ -n "$terminfo[kf5]" ]] && key[F5]=$terminfo[kf5]
[[ -n "$terminfo[kf6]" ]] && key[F6]=$terminfo[kf6]
[[ -n "$terminfo[kf7]" ]] && key[F7]=$terminfo[kf7]
[[ -n "$terminfo[kf8]" ]] && key[F8]=$terminfo[kf8]
[[ -n "$terminfo[kf9]" ]] && key[F9]=$terminfo[kf9]
[[ -n "$terminfo[kf10]" ]] && key[F10]=$terminfo[kf10]
[[ -n "$terminfo[kf11]" ]] && key[F11]=$terminfo[kf11]
[[ -n "$terminfo[kf12]" ]] && key[F12]=$terminfo[kf12]
[[ -n "$terminfo[kf13]" ]] && key[F13]=$terminfo[kf13]
[[ -n "$terminfo[kf14]" ]] && key[F14]=$terminfo[kf14]
[[ -n "$terminfo[kf15]" ]] && key[F15]=$terminfo[kf15]
[[ -n "$terminfo[kf16]" ]] && key[F16]=$terminfo[kf16]
[[ -n "$terminfo[kf17]" ]] && key[F17]=$terminfo[kf17]
[[ -n "$terminfo[kf18]" ]] && key[F18]=$terminfo[kf18]
[[ -n "$terminfo[kf19]" ]] && key[F19]=$terminfo[kf19]
[[ -n "$terminfo[kf20]" ]] && key[F20]=$terminfo[kf20]
[[ -n "$terminfo[kbs]" ]] && key[Backspace]=$terminfo[kbs]
[[ -n "$terminfo[kich1]" ]] && key[Insert]=$terminfo[kich1]
[[ -n "$terminfo[kdch1]" ]] && key[Delete]=$terminfo[kdch1]
[[ -n "$terminfo[khome]" ]] && key[Home]=$terminfo[khome]
[[ -n "$terminfo[kend]" ]] && key[End]=$terminfo[kend]
[[ -n "$terminfo[kpp]" ]] && key[PageUp]=$terminfo[kpp]
[[ -n "$terminfo[knp]" ]] && key[PageDown]=$terminfo[knp]
[[ -n "$terminfo[kcuu1]" ]] && key[Up]=$terminfo[kcuu1]
[[ -n "$terminfo[kcub1]" ]] && key[Left]=$terminfo[kcub1]
[[ -n "$terminfo[kcud1]" ]] && key[Down]=$terminfo[kcud1]
[[ -n "$terminfo[kcuf1]" ]] && key[Right]=$terminfo[kcuf1]
fi
# Default key bindings
[[ -n ${key[Delete]} ]] && bindkey "${key[Delete]}" delete-char
[[ -n ${key[Home]} ]] && bindkey "${key[Home]}" beginning-of-line
[[ -n ${key[End]} ]] && bindkey "${key[End]}" end-of-line
[[ -n ${key[Up]} ]] && bindkey "${key[Up]}" up-line-or-search
[[ -n ${key[Down]} ]] && bindkey "${key[Down]}" down-line-or-search
# Default prompt
PS1="%n@%m %1~ %# "
# Useful support for interacting with Terminal.app or other terminal programs
[ -r "/etc/zshrc_$TERM_PROGRAM" ] && . "/etc/zshrc_$TERM_PROGRAM"
---- 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 /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/rz17k4fl8gc5pgnw01v3msqj0s9dmzqh-nix-2.34.4/bin/nix-env -i /nix/store/rz17k4fl8gc5pgnw01v3msqj0s9dmzqh-nix-2.34.4
to install a bootstrapping Nix in to the default profile
replacing old 'nix-2.34.4'
installing 'nix-2.34.4'
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo HOME=/var/root /nix/store/rz17k4fl8gc5pgnw01v3msqj0s9dmzqh-nix-2.34.4/bin/nix-env -i /nix/store/lx1avbg8s4yyvdkc2yk8nc2wpnlssl98-nix-manual-2.34.4-man
to install Nix man pages in to the default profile
replacing old 'nix-manual-2.34.4-man'
installing 'nix-manual-2.34.4-man'
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo HOME=/var/root /nix/store/rz17k4fl8gc5pgnw01v3msqj0s9dmzqh-nix-2.34.4/bin/nix-env -i /nix/store/a5rxxcslmcvm987j9acr8b1bwx7yfmvh-nss-cacert-3.117
to install a bootstrapping SSL certificate just for Nix in to the default profile
replacing old 'nss-cacert-3.117'
installing 'nss-cacert-3.117'
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo HOME=/var/root NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /nix/store/rz17k4fl8gc5pgnw01v3msqj0s9dmzqh-nix-2.34.4/bin/nix-channel --update nixpkgs
to update the default channel in the default profile
unpacking 1 channels...
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo install -m 0644 /var/folders/k8/5w36w_9x7bx7zvz98sg1_wjh0000gn/T/tmp.3XPsWPcvNq/nix.conf /etc/nix/nix.conf
to place the default nix daemon configuration (part 2)
~~> Setting up the nix-daemon LaunchDaemon
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo /usr/bin/install -m u=rw,go=r /nix/var/nix/profiles/default/Library/LaunchDaemons/org.nixos.nix-daemon.plist /Library/LaunchDaemons/org.nixos.nix-daemon.plist
to set up the nix-daemon as a LaunchDaemon
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist
to load the LaunchDaemon plist for nix-daemon
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo launchctl kickstart -k system/org.nixos.nix-daemon
to start the nix-daemon
Alright! We're done!
Try it! Open a new terminal, and type:
$ nix-shell -p nix-info --run "nix-info -m"
Thank you for using this installer. If you have any feedback or need
help, don't hesitate:
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
---- Reminders -----------------------------------------------------------------
[ 1 ]
Nix won't work in active shell sessions until you restart them.
Checklist
- checked latest Nix manual (source)
- checked open installer issues and pull requests for possible duplicates
Add 👍 to issues you find important.
Reactions are currently unavailable