packages icon indicating copy to clipboard operation
packages copied to clipboard

[Request] nix (the package manager)

Open GarciaLnk opened this issue 9 months ago • 8 comments

What software are you requesting to be packaged? Nix https://github.com/NixOS/nix

Describe the motivation I don't think Nix needs much introduction. Its main repository, nixpkgs has the highest number of packages among any other package repository, and it's a wonderful package manager to use in an atomic distro, where RPMs can't (or shouldn't) be installed at runtime.

Additional context An RPM, without a standalone repo, is provided as a "legacy" installer at: https://nix-community.github.io/nix-installers

However, this installer is incompatible with OSTree-based distributions as it uses /nix directly. Determinate Nix installer works around this by installing /nix inside /var and mounting it to /nix on boot through a systemd service. Our package should be compatible with atomic distros following a similar approach.

GarciaLnk avatar Mar 09 '25 14:03 GarciaLnk

Cursed, but I'd honestly considered asking about adding this because Ghostty was messed up and trying to dep on Nix stuff for a bit.

GildedRoach avatar Mar 09 '25 17:03 GildedRoach

This is probably legacy because system wide Nix package manager doesn't work with SELinux. https://nixos.org/download/

GildedRoach avatar Mar 10 '25 02:03 GildedRoach

The RPM installer and Determinate's installer both include SELinux policies that work fine on Fedora (these are notably absent in the "official" bash installer).

https://github.com/nix-community/nix-installers/tree/master/selinux https://github.com/DeterminateSystems/nix-installer/tree/main/src/action/linux/selinux

GarciaLnk avatar Mar 10 '25 07:03 GarciaLnk

The RPM installer and Determinate's installer both include SELinux policies that work fine on Fedora (these are notably absent in the "official" bash installer).

https://github.com/nix-community/nix-installers/tree/master/selinux https://github.com/DeterminateSystems/nix-installer/tree/main/src/action/linux/selinux

Interesting, something to keep in mind then.

GildedRoach avatar Mar 10 '25 07:03 GildedRoach

This is probably legacy because system wide Nix package manager doesn't work with SELinux. https://nixos.org/download/

Just use Lix, and your SELinux problems related with Nix disappear

Anifyuli avatar May 29 '25 01:05 Anifyuli

Nix has been proposed to Fedora https://fedoraproject.org/wiki/Changes/Nix_package_tool

Jan200101 avatar Nov 01 '25 14:11 Jan200101

I would honestly wait for Fedora, I don't (and can't) use atomic and no one here can make sure it works in atomic.

madonuko avatar Nov 01 '25 15:11 madonuko