aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-12-06 11:31:34 +0100
committerGitHub <noreply@github.com>2022-12-06 11:31:34 +0100
commit54906bc93c0db36b03ac76b67594403261ffd377 (patch)
tree96c4b72274d5f89f264ea29be8b082d6cb8f75d7 /src/libstore
parentbfcf30f0abdfd1df4364919f203d04ff08d7314c (diff)
parent484578d3f9b15c34c0e3a42cc0d1f87f1c15d7f6 (diff)
Merge pull request #7382 from fricklerhandwerk/doc-automatic-uid
move documentation on `auto-allocate-uids` to options docs
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/globals.hh38
1 files changed, 32 insertions, 6 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh
index b40dcfa77..ca72ad31e 100644
--- a/src/libstore/globals.hh
+++ b/src/libstore/globals.hh
@@ -284,7 +284,22 @@ public:
)"};
Setting<bool> autoAllocateUids{this, false, "auto-allocate-uids",
- "Whether to allocate UIDs for builders automatically."};
+ R"(
+ Whether to select UIDs for builds automatically, instead of using the
+ users in `build-users-group`.
+
+ UIDs are allocated starting at 872415232 (0x34000000) on Linux and 56930 on macOS.
+
+ > **Warning**
+ > This is an experimental feature.
+
+ To enable it, add the following to [`nix.conf`](#):
+
+ ```
+ extra-experimental-features = auto-allocate-uids
+ auto-allocate-uids = true
+ ```
+ )"};
Setting<uint32_t> startId{this,
#if __linux__
@@ -308,11 +323,22 @@ public:
Setting<bool> useCgroups{
this, false, "use-cgroups",
R"(
- Whether to execute builds inside cgroups. Cgroups are
- enabled automatically for derivations that require the
- `uid-range` system feature.
- )"
- };
+ Whether to execute builds inside cgroups.
+ This is only supported on Linux.
+
+ Cgroups are required and enabled automatically for derivations
+ that require the `uid-range` system feature.
+
+ > **Warning**
+ > This is an experimental feature.
+
+ To enable it, add the following to [`nix.conf`](#):
+
+ ```
+ extra-experimental-features = cgroups
+ use-cgroups = true
+ ```
+ )"};
#endif
Setting<bool> impersonateLinux26{this, false, "impersonate-linux-26",