Skip to content

Commit

Permalink
Add "uid-range" and "systemd-cgroup" system features
Browse files Browse the repository at this point in the history
"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
  • Loading branch information
edolstra committed May 19, 2020
1 parent 192e3ef commit 8e0bdc0
Show file tree
Hide file tree
Showing 5 changed files with 339 additions and 204 deletions.
Loading

0 comments on commit 8e0bdc0

Please sign in to comment.