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
(4ff7f0ee4aa905fb16916e00eaf0608e26ba0586161ce6ea105f1d38e7fa48bb)
x86_64: nix-multi-user-2.24.10.pkg.tar.zst
(739c1d93535e32105bea2fb5608205454960db7f17cc2723498c91cd6b1ba4dd)
Rpm
aarch64: nix-multi-user-2.24.10.rpm
(4cf599bf3d0811d5e1fdc7bd836dbb8a4805e651baf5fba6cd7d36741a50e014)
x86_64: nix-multi-user-2.24.10.rpm
(ff9ca7ad351b651962fe370a8c2d41057759a99343615905c9b7835925bece2d)
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
(0a849d29a0674f6258344fa4742476b6910e3297dfc5b1d16d04c8991ed2d83a)
x86_64: lix-multi-user-2.91.1.pkg.tar.zst
(9075f5348a0ccb7787c4d68ef2e7849281bf6d53c0343ded5ff525f2765b654a)
Rpm
aarch64: lix-multi-user-2.91.1.rpm
(8b4a5971d9a59e6aab7568e3fc30cb5fe40a21b77ba77fa47aaf8248ae2cecf0)
x86_64: lix-multi-user-2.91.1.rpm
(81d6635e939817e50c874439478c2744b8bd465bdbc134dfefe4d83cfa173527)
# 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