Install Nix on Gentoo

Install Nix on Gentoo

Article image.
easier than installing bloatware on Gentoo!

Code:
nix and guix overlay for gentoo

Guide:
nix on gentoo howto by trofi

It is very easy to do this way.

BENEFITS

  • Install bloatware with declarable builds and zero effort

  • Install basedware with gentoo

  • Be able to build stuff from source etc. without the nix abstractions
    getting in the way

  • Learn how nix works for deployable declarative server infrastructure (see post on that here)

Alternatives

  • Use kexec and install both, switch at runtime (complex, can't have both on at the same time)

  • Use a gentoo chroot from within nix (complex, requires knowledge of the nix language). Use qemu or whatever. Very smart option. All the same benefits as above but the base system is also more reliable because it is nix. Install portage in NixOS (madness)

Gotchas

Nix should work with the official curl into sudo sh method, and not break the system. Instead, use the overlay. Let the overlay maintainer deal with those problems.

in: articles

Spenser Truex

Contact
hacker emblem
| |