Skip to content

Instantly share code, notes, and snippets.

@SuperSandro2000
Created March 30, 2021 10:56
Show Gist options
  • Save SuperSandro2000/ab5328c1887ac93c29d352a69cdd3f49 to your computer and use it in GitHub Desktop.
Save SuperSandro2000/ab5328c1887ac93c29d352a69cdd3f49 to your computer and use it in GitHub Desktop.
Upgrade nix installed with nix-installer to unstable
  1. systemctl disable --now nix-daemon.service nix-daemon.socket
  2. nix-env -p /nix/var/nix/profiles/default/ --install nix-2.4pre20210317_8a5203d
  3. rm /etc/profile.d/nix.sh /etc/profile.d/nix-daemon.sh
  4. ln -s /nix/var/nix/profiles/default/etc/profile.d/nix.sh /etc/profile.d/nix.sh
  5. ln -s /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh /etc/profile.d/nix-daemon.sh
  6. systemctl link /nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.{service,socket}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment