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
(4ee4def7e08a497af8973d77775bcc0d66f73fa40cf881b06918c74fce103f6d)
x86_64: nix-multi-user-2.24.10.pkg.tar.zst
(1ff037b374eb5046fdd2c99c78c875214b5856213d643a463d65867b61a742f3)
Rpm
aarch64: nix-multi-user-2.24.10.rpm
(122a9580c7a5ecc7775a0cf12eb685c9aa51fc5759e81b6ba594a8b90dcc51e0)
x86_64: nix-multi-user-2.24.10.rpm
(93de042c9f941db56aca52b9fb8b80fd7f6137a508ef0d1cfce1a1f5cab4999b)
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
(3465a49a0197b4398e95d752e562d042e934f54a370211e5ff7645fb10a29403)
x86_64: lix-multi-user-2.91.1.pkg.tar.zst
(a022b531453f934b057c9a2fb48a91cf9704a9e7e1b154c9d3bbc0fe981eb2af)
Rpm
aarch64: lix-multi-user-2.91.1.rpm
(c3e9e3f368785a57993bca32be1b88387f44a501d742a0f6f74949ad9893a73e)
x86_64: lix-multi-user-2.91.1.rpm
(a0825ede4e53008d94bbdc5306e07af2732eab2c2e83614b3995c5e59b0cdaca)
# 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