Getting Nix onto legacy distributions can be difficult and the official installer is not always a viable option, especially when considering reproducibility and automation.
This approach is different from others in that we:
Package using distribution-native packaging formats
(deb/rpm). And use these packages to manage
systemd and environment integrations.
Create a /nix/store imperatively as a postinstall hook. This uses a prepopulated Nix store embedded inside the distribution-native packaging format.
Properly cleans up after uninstallation. We use package manager hooks to cleanly remove any traces of Nix post removal.
To achieve a reproducible setup for these distributions that doesn’t rely on pulling files from the internet at install-time.
These installer packages are intended to be used in a one-shot fashion to bootstrap the Nix installation, and then let Nix deal with managing itself from that point on.
Deb
aarch64: nix-multi-user-2.24.10.deb
(c84ea76f63d237d1d6a09dcfd19da8d00de2c4df64532101495b72419d870b7d)
x86_64: nix-multi-user-2.24.10.deb
(3ddf9f1c6c9a9a1c104d883a37802f07eaddb9a3066587683ba770869a4e8467)
Pacman
aarch64: nix-multi-user-2.24.10.pkg.tar.zst
(990d41f8acb563f21c26404306669cc62668727c8cd74d6d74dbc8304a6b78de)
x86_64: nix-multi-user-2.24.10.pkg.tar.zst
(80ef9d46a34fbffc8133e95a54e53b7c0b9b40e7518e785dbf0783c84990b173)
Rpm
aarch64: nix-multi-user-2.24.10.rpm
(6b7e41e0de728e49532561a4f95f8796049b567e2a752cfdb657da648f96e7da)
x86_64: nix-multi-user-2.24.10.rpm
(bb6db36b1cc756f1636706bdf2f6657e7316bd96731299a41af4e570bcd36575)
Deb
aarch64: lix-multi-user-2.91.1.deb
(931a15a13f7c949144a7b8752350981b5bf1e6eda961b4c261d0fa452e8e734d)
x86_64: lix-multi-user-2.91.1.deb
(a799a491edc71cf910a549559d89de04a87d1bad5d09e11a3fbace8ec855f866)
Pacman
aarch64: lix-multi-user-2.91.1.pkg.tar.zst
(d7a3d1e517c9201f10f8baf2687531068ba68ee08bd02b7c67c1e5488d5aeb45)
x86_64: lix-multi-user-2.91.1.pkg.tar.zst
(7f2885f50bd6b14814a17969110668fcb36f26d79a2214cc254f6c88bfe57879)
Rpm
aarch64: lix-multi-user-2.91.1.rpm
(8aa24321600ce46573cff1e9b061741dbc952deb95177930ef272e1ad86f8086)
x86_64: lix-multi-user-2.91.1.rpm
(8b29caabb68bdbe74711112d279aa8976125add49a52e2aee9642c506db41d15)
# Remote flake (Nix)
$ nix build github:nix-community/nix-installers#nix-deb
$ nix build github:nix-community/nix-installers#nix-pacman
$ nix build github:nix-community/nix-installers#nix-rpm
# Remote flake (Lix)
$ nix build github:nix-community/nix-installers#lix-deb
$ nix build github:nix-community/nix-installers#lix-pacman
$ nix build github:nix-community/nix-installers#lix-rpm# In a cloned repository (Nix)
$ nix build .#nix.deb
$ nix build .#nix.pacman
$ nix build .#nix.rpm
# In a cloned repository (Lix)
$ nix build .#lix.deb
$ nix build .#lix.pacman
$ nix build .#lix.rpm