Open dadaphl opened 2 years ago
The block above the failure you quoted in the title indicates that the service is disabled in launchctl:
---- sudo execution ------------------------------------------------------------
I am executing:
$ sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist
to load the LaunchDaemon plist for nix-daemon
/Library/LaunchDaemons/org.nixos.nix-daemon.plist: Service is disabled
Load failed: 119: Service is disabled
This is a "me too" comment, just ran into this exact problem on macOS 13.1 (Mac Mini M1).
Is this something I can fix myself, to allow the installer to proceed?
Did you try enabling the service with launchctl?
Running sudo launchctl enable system/org.nixos.nix-daemon
initially did not seem to do anything, I followed up with sudo launchctl kickstart -k system/org.nixos.nix-daemon
and got the message: Could not find service "org.nixos.nix-daemon" in domain for system
.
I did all of the following a couple of times, but I can't recall the exact order:
sudo mv /etc/bash.bashrc.backup-before-nix /etc/bash.bashrc
sudo mv /etc/bashrc.backup-before-nix /etc/bashrc
sudo mv /etc/zshrc.backup-before-nix /etc/zshrc
/nix
and ~/.nix
launchctl enable
and kickstart
manually:
sudo launchctl enable system/org.nixos.nix-daemon
sudo launchctl kickstart -k system/org.nixos.nix-daemon
sh <(curl -L https://nixos.org/nix/install)
At some point the installer went through.
It's not quite the same scenario as the original issue creator, but I'm commenting because Google brings you here when you search for 'Could not find service "org.nixos.nix-daemon" in domain for system'.
I came across this error when trying to use a Darwin flake with nix.useDaemon = true;
. To resolve it I had to set services.nix-daemon.enable = true;
.
M1 Mac