diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-05-19 23:25:44 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-06 13:50:33 +0200 |
commit | ba50c3efa3b2394f5a8372939bc600008cd25e7e (patch) | |
tree | f2139d3768d91d29dddbd4e5d10414f5a2833188 /src/libutil/compute-levels.hh | |
parent | 570c443f560e015cf02e4f96102eaaa0e6853562 (diff) |
Add "uid-range" and "systemd-cgroup" system features
"uid-range" provides 65536 UIDs to a build and runs the build as root
in its user namespace. "systemd-cgroup" allows the build to mount the
systemd cgroup controller (needed for running systemd-nspawn and NixOS
containers).
Also, add a configuration option "auto-allocate-uids" which is needed
to enable these features, and some experimental feature gates.
So to enable support for containers you need the following in
nix.conf:
experimental-features = auto-allocate-uids systemd-cgroup
auto-allocate-uids = true
system-features = uid-range systemd-cgroup
Diffstat (limited to 'src/libutil/compute-levels.hh')
0 files changed, 0 insertions, 0 deletions