NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.83k stars 1.52k forks source link

multi user reinstall fails #3118

Open zokrezyl opened 5 years ago

zokrezyl commented 5 years ago

Little related to: https://github.com/NixOS/nix/issues/2120,

I wanted to reinstall multiuser mode and removed all directories as suggested. Also removed /etc/systemd/system/nix-daemon.{socket,service}.

Reinstalling did not work as the installer (I think) expects that systemd creates /nix/var/nix/daemon-socket/socket, but it fails to do so as the units were not cleaned up properly.

Strange also that the daemon starts without existing /nix/var/nix/daemon-socket

One should properly call

  sudo systemctl stop nix-daemon.socket
  sudo systemctl stop nix-daemon.service
  sudo systemctl disable nix-daemon.socket
  sudo systemctl disable nix-daemon.service
  sudo systemctl daemon-reload

Proposed improvements:

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info