-
-
Notifications
You must be signed in to change notification settings - Fork 292
Package manager install on Debian, Ubuntu and Alpine #1141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Documents installation with package manager on popular distributions. This is tested on the newest stable version of each of those: - Debian 12 - Ubuntu 24.04 - Alpine 3.21
Don't merge this PR just yet. Although it installs fine, it doesn't configure all settings. The tutorials will not work if some extra config is not done. |
On Arch Linux, you can alternatively [install Nix through `pacman`](https://wiki.archlinux.org/title/Nix#Installation). | ||
On most distributions you can also install it with the package manager: | ||
* On Arch Linux the different types of installation are documented [on the Arch Linux wiki](https://wiki.archlinux.org/title/Nix#Installation). | ||
* On Debian and Ubuntu (and distributions based on these like Mint, MX, ...) you can use `apt install nix` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also nix-setup-systemd for a more complete and useful install.
I would like to make some remarks about the part of this chapter which refers to installing nix on a linux distribution using the distribution package manager. About Arch Linux: The nix package is multi-user because it contains the installation of the nix-daemon. About Debian/Ubuntu About Alpine: I would advise to add the minimum configuration for nix because the documents is also mend for beginners. You could format the information with a drop down. The configurations are:
For more detailed installation notes, I advise to link this paragraph to https://wiki.nixos.org/wiki/Nix_Installation_Guide and visa versa. So that the page references reader to related observations outside nix.dev. |
I am just starting with Nix. Odds are that I will make mistakes when my instructions become more detailed. |
Thanks @ngaro @hansat299 for your contributions. I'm a bit hesitant to pick this up as is, because starting yet another collection of notes won't be an improvement over the pile of words in the wiki or anywhere else, but simply add another place with potential for divergent information that someone needs to keep up to date. What we'd actually need here is something along the lines as what @imincik added for NGIpkgs: Instructions (example) that are automatically tested against the actual installers on those operating systems. Now that code will probably be rather hard to read because it's built for a particular purpose, but the general idea would still apply here. It would need a bit of effort to adapt to nix.dev, and while upstreaming the work in NGIpkgs is definitely planned, it's not a primary goal this year and I don't want to make promises I can't keep. If you're interested in having this, I'd strongly encourage you to work on top of that material and would gladly merge anything that has green tests (i.e. can be reviewed by eyeballing). |
|
Documents installation with package manager on popular distributions. This is tested on the newest stable version of each of those: