if you are trying to remove a multi user install on linux and revert to a single user install
you need to remove your NIX_REMOTE variable
or just set it to export NIX_REMOTE=
so this is blank and not calling the daemon - as you are installing without it for single user
THIS IS IMPORTANT AND NOT ONE PLACE HAS DOCS THAT TELL YOU SUCH
sudo systemctl disable nix-daemon.socket
sudo systemctl disable nix-daemon.service
sudo systemctl stop|kill nix-daemon.socket
sudo systemctl stop|kill nix-daemon.service
rm -rf ~/.nix-*
sudo rm /etc/profile.d/nix.sh
sudo rm -rf /nix
sudo rm -rf /etc/nix
shell script to remove groups
#!/bin/sh
i=0
while [ $i -ne 32 ]
do
i=$(($i+1))
# echo "$i"
sudo userdel nixbld$1
done
sudo userdel nixbld01-32 (use shell script above for ease)
(actually del all from # 1-32)
or sudo userdel nixbld1-31
sudo rm -rf /nix /etc/nix
sudo groupdel nixbld
~/.config/nix/nix.conf
https://nixos.wiki/wiki/Nix_Installation_Guide
$ sudo install -d -m755 -o $(id -u) -g $(id -g) /nix
$ curl -L https://nixos.org/nix/install | sh
source $HOME/.nix-profile/etc/profile.d/nix.sh
sh <(curl -L https://nixos.org/nix/install) --no-daemon
Thank you! 😄