Integrating Guix/Nix Package Manager

Information

ID: 600
PHID: PHID-TASK-ainnc22zrziso3cs2gkh
Author: HulaHoop
Status at Migration Time: open
Priority at Migration Time: Normal

Description

Nix is a powerful package manager for Linux and other Unix systems that makes package management reliable and reproducible. It provides atomic upgrades and rollbacks, side-by-side installation of multiple versions of a package, multi-user package management and easy setup of build environments. Also makes packaging easier than Debian. It also supports compiler hardening flags.

GNU Guix is based on it with some modifications.


Pros:

  • Has the potential to solve our problem of including external binaries in a safe reproducible way without the Debian freeze restrictions.

  • Does not interfere with apt or the system config in any way.

Cons:

  • Usability impact of running two package managers to keep the system updated. Wrapper scripts or some other way to notify users may be needed.

Found the dev thread about GNU Guix’s Debian packaging attempts mentioned in:

There was a GSoC 2016 project to get it into Debian but it didn’t happen for many reasons.

There are good reasons why Guix and Nix do not follow the FHS but that means there will never be a package for them upstream. Attempts to conform to FHS caused Guix functionality to break and would mess up the nice clean install system it has:

https://lists.gnu.org/archive/html/guix-devel/2016-02/msg01126.html

Instead the guix project distributes a signed tarball with instructions to compile and install it which is far from optimal for us:

https://www.gnu.org/software/guix/manual/guix.html#Binary-Installation


Instead of trying to get into Debian, the devs talked about the possibility of providing a .deb via their own repository that does not follow Debian standards but is very convenient for people who want to bootstrap install Guix:

https://lists.gnu.org/archive/html/guix-devel/2016-02/msg01144.html

“Hosting a .deb file on our own server that users could download and
install with dpkg would be perfect for us.”

The blocker for this is Ubuntu’s build process requirements are different from Debian’s and so they shelved the whole thing:

https://lists.gnu.org/archive/html/guix-devel/2016-02/msg01205.html

“Without a fully automated process to build .deb for several distros, I
don’t think we can offer to distribute .deb ourselves. :-/”


Here a Guix enthusiast discusses how to run Guix without compiling it. interesting but doesn’t make it any easier in our case to distribute:

https://dustycloud.org/blog/guix-package-manager-without-make-install/


With this path blocked I decided to look at the Nix manager instead which is what Guix is based on anyway. And fortunately its a better situation. Signed Debian packages for stable are provided! and a script that fetches and validates the .deb. That means with some leg work it can be included in Whonix via our repos:

https://nixos.org/wiki/Installing_Nix_on_Debian

I looked at their package selection and it is impressive. Grsecurity, GNUnet and much more:

https://nixos.org/nixos/packages.html


Other interesting reads:

https://nixos.org/wiki/Hardened_NixOS#Features_in_development

https://www.reddit.com/r/NixOS/comments/4btjnf/fully_setting_up_a_custom_private_nix_repository/


Comments


HulaHoop

2017-01-18 16:15:19 UTC


HulaHoop

2017-01-20 16:28:08 UTC


HulaHoop

2017-03-13 22:47:46 UTC


Deleted Author

2022-02-24 21:12:00 UTC


HulaHoop

2017-06-26 15:56:17 UTC


Deleted Author

2022-02-24 21:11:51 UTC


HulaHoop

2017-07-15 01:23:21 UTC


Deleted Author

2022-02-24 21:11:42 UTC


Deleted Author

2022-02-24 21:11:33 UTC


Deleted Author

2022-02-24 21:11:20 UTC


HulaHoop

2018-03-19 21:15:21 UTC


Deleted Author

2022-02-24 21:11:10 UTC


HulaHoop

2018-03-22 12:33:14 UTC


Deleted Author

2022-02-24 21:11:02 UTC


HulaHoop

2018-05-18 13:19:11 UTC


Deleted Author

2022-02-24 21:10:51 UTC


Deleted Author

2022-02-24 21:10:28 UTC


HulaHoop

2018-07-22 16:24:36 UTC


Patrick

2019-07-06 10:40:07 UTC