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
(26f1a2c8480c7db80c2a860c1c1c557eee626977e95994246908d3c3b1ac1b1b)
x86_64: nix-multi-user-2.24.10.pkg.tar.zst
(ef74d72c8adc738a37665665955d37fd5e6f1b51de8450375f5216779caf6eec)
Rpm
aarch64: nix-multi-user-2.24.10.rpm
(52da085a7512822b7881c830cf770ec844038a24b16f2d4a696e49da8520cd9b)
x86_64: nix-multi-user-2.24.10.rpm
(a4e0e906c706ab5a99849ef839cbf2857401d210ccbae1ca507b071b0bcad1dd)
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
(7b81679ea042c13bd52095d49a4a7105ec19ae1a5376f774b407f1a969d48247)
x86_64: lix-multi-user-2.91.1.pkg.tar.zst
(b5cc4b49c5dddcc3003af511d6cc5b2c2d13efc5ab4a616380ed0db1ad183c65)
Rpm
aarch64: lix-multi-user-2.91.1.rpm
(c0b81b7c5adb8a9d686e93b5bf6d1d20ea871d708dae415d49c0a37595eebd30)
x86_64: lix-multi-user-2.91.1.rpm
(3d5ecf6e48d6537057b5832593309a9735bf0dc04f8ed54a71d7751cc6c282d6)
# 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