Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934920 - sys-apps/nix: reinstating Nix in the Gentoo official repo
Summary: sys-apps/nix: reinstating Nix in the Gentoo official repo
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-25 10:48 UTC by Maciej Barć
Modified: 2024-06-25 10:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Barć gentoo-dev 2024-06-25 10:48:58 UTC
This bug tracks issues regarding the Nix program on Gentoo Linux.

Hello!

I would like to work on reinstating nix in the official Gentoo repo.

Backstory:
Since some time we were using Nix at work to build our projects and I also have started using it for mine. Recently I also started using home-manager (on Gentoo!) to manage configuration files under my user account.
I do use a peculiar setup however since I do not use the nix-daemon and my nix install is effectively single-user. See: https://gitlab.com/xgqt/myov/-/blob/master/sys-apps/nix-single/nix-single-2.23.0.ebuild?ref_type=heads

Issues with nix:
- /nix & /guix were added to qa whitelist and then removed (https://gitweb.gentoo.org/repo/gentoo.git/commit/metadata/install-qa-check.d/08gentoo-paths?id=48735f318b6509fe5bc80f9b5d2a298f9cef5d73), they need to be reinstated
- nix wants autogenerated user names which is janky in current acc-user setup, imo the best workaround it to have either pkg_preinst/pkg_postinst or pkg_config that sets up the users, in the nix-guix-gentoo the users are installable (https://github.com/trofi/nix-guix-gentoo/tree/master/acct-user)
- probably needs some special pkg versions - I do not see a reason to not add https://github.com/trofi/nix-guix-gentoo/blob/master/sys-apps/busybox-nix-sandbox-shell/busybox-nix-sandbox-shell-1.36.1.ebuild , in case of app-text/lowdown-nix, if I understand correctly the issue is that it need a static lib(?) - we can invesitigate if we can link it dynamically.

Philosophical concerns:
- I do not see why nix would not fit into ::gentoo philosophically, IMO its like rejecting ansible/puppet/... because it has its own way of configuration management,
- having nix in ::gentoo will provide value to companies utilizing nix for project development, and we all know that sometimes "stupid" situations requires "stupid" (or rather suboptimal) solutions,
- my stance on Gentoo vs Nixos: https://emacs.ch/@xgqt/112581104037953790