9a59106c172b7d5963e3dc2cf07ff5b19f8119d6
NIX_REMOTE=auto tries the daemon socket *then* direct access
In the past, it tried direct access if it *could* [1] perform direct access. This solves a bunch of errors people had when they tried the cgroup feature and their scripts did not pass NIX_REMOTE=daemon manually (nixos-rebuild-ng, home-manager activation from a root systemd unit, etc.) To avoid looping infinitely while receiving daemon connections, we forcibly change the store URI when forking for a subdaemon to do direct access automatically, this doesn't break forward usecases where you point a daemon to another socket because we only change NIX_REMOTE="", NIX_REMOTE=daemon, NIX_REMOTE=auto to a local and direct access. All these usecases would end up infinitely looping no matter what settings are set, because we are also responsible for creating the daemon socket. [1]: this happened all the time if you were `root`. Related: https://github.com/NixOS/nixpkgs/pull/415701 Change-Id: I783fc795a9c2ee25b3d9f44f453f8f94b063371f Signed-off-by: Raito Bezarius <raito@lix.systems>
Lix
Lix is an implementation of Nix, a powerful package management system for Linux and other Unix systems that makes package management reliable and reproducible.
Read more about us at https://lix.systems.
Installation
On Linux and macOS the easiest way to install Lix is to run the following shell command (as a user other than root):
$ curl -sSf -L https://install.lix.systems/lix | sh -s -- install
For systems that already have a Nix implementation installed, such as NixOS systems, read our install page
Building And Developing
See our Hacking guide in our manual for instruction on how to set up a development environment and build Lix from source.
Additional Resources
- The Lix reference manual:
- Our wiki
- Matrix - #space:lix.systems
License
Lix is released under LGPL-2.1-or-later.
Description
Working fork of Lix - carries the adaptive load-aware build-remote patch. Upstream: gerrit.lix.systems
92 MiB
Languages
C++
74.9%
Python
11.7%
Nix
6.1%
Shell
3.6%
Meson
2%
Other
1.6%