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: lix-multi-user-2.91.1.deb
(df8ee9d6b68047e896ab5483c8d0e3e5c1fcdbfaa71512c220590235a353c793)
x86_64: lix-multi-user-2.91.1.deb
(5e4941dc7cd90ea8c9f9ff9112853e3a94a19eddc4cdfaff2bf50030d2329cd1)
Pacman
aarch64: lix-multi-user-2.91.1.pkg.tar.zst
(aa9d1fcf630bb7ce98cb1f04fc9a058767968dda80e3510cde4a1b94213ff94d)
x86_64: lix-multi-user-2.91.1.pkg.tar.zst
(10c690ed33e3cf35f3ef044177681b127a492072f0b08b8efe16de80e0857fb6)
Rpm
aarch64: lix-multi-user-2.91.1.rpm
(ce7128559cf51114535d8b5395b20bb00f4e95bdee8dacb659d598c46949e133)
x86_64: lix-multi-user-2.91.1.rpm
(094dabd186b29283da00adb44f882656264f045dfc602a9a730fc2b2a3ff10e9)
Deb
aarch64: nix-multi-user-2.24.9.deb
(ebfd373de24bba26cf1b716f4a1e35a9e7d20eb154208fbda774e526572dfa5f)
x86_64: nix-multi-user-2.24.9.deb
(795e03e033ab0f057d8a7a24e57035824b445433198956f507b87cdd3efad1b2)
Pacman
aarch64: nix-multi-user-2.24.9.pkg.tar.zst
(e9ba198242fe3b7cc05a59fc2390a4c401c4e6e50107861d9a1d3bf416fe6876)
x86_64: nix-multi-user-2.24.9.pkg.tar.zst
(86030b9f0ecce7acf750157a1b24380b7c359f348784feb5ecc91f098a2b8701)
Rpm
aarch64: nix-multi-user-2.24.9.rpm
(f66efc073fee796eb608db5884addfe8d25d74857f1590e5349bda0e9a483cc8)
x86_64: nix-multi-user-2.24.9.rpm
(910dccac4d42e7b1598b8317fd39589bc19d05db1ef73a66d96145ada3deaf9a)
# 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
# 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
# In a cloned repository (Lix)
$ nix build .#lix.deb
$ nix build .#lix.pacman
$ nix build .#lix.rpm
# In a cloned repository (Nix)
$ nix build .#nix.deb
$ nix build .#nix.pacman
$ nix build .#nix.rpm