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
(8557531d5c9dfc4c746c01f52c62dab95444ed1d8e6b6d43314302ea375e9fb9)
x86_64: nix-multi-user-2.24.10.pkg.tar.zst
(15ecc65e6c536037506e51d3f94f3cb0a8b349d35e687e7f6e7a894bf5aaf22e)
Rpm
aarch64: nix-multi-user-2.24.10.rpm
(13c1459546ae25938ea3f9a0907eeb311af6deaa0887c59e4c2581a138fa19a8)
x86_64: nix-multi-user-2.24.10.rpm
(238a709955b9faed59825a13ba11059fe498ede699d628735141e3db72d1c482)
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
(0b4bc13e44b6b01e7048cfc410fd480fb4d8df47e00aa7a273c433bd20d08d6e)
x86_64: lix-multi-user-2.91.1.pkg.tar.zst
(df4d08a2325cdeb25f3bbdb6f658d8b0d48c63c3e384c37d8d1cc24007edbf6a)
Rpm
aarch64: lix-multi-user-2.91.1.rpm
(f7312a322ac01cd0cae89b0d16b9b83fca357ec497174f71417a412ac96073fe)
x86_64: lix-multi-user-2.91.1.rpm
(fbd16b2a41ad0defebeba4115a08e0e132708edbe5bba3a53c044e2d878795cb)
# 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