1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 22:33:57 +02:00

Add a setting for enabling cgroups

This commit is contained in:
Eelco Dolstra 2022-11-28 21:54:02 +01:00
parent ff12d1c1a1
commit 67bcb99700
4 changed files with 27 additions and 10 deletions

View file

@ -43,10 +43,11 @@
```
extra-experimental-features = cgroups
use-cgroups = true
```
to `nix.conf`. It is also automatically enabled for builds that
require the `uid-range` system feature.
to `nix.conf`. Cgroups are required for derivations that require the
`uid-range` system feature.
* `nix build --json` now prints some statistics about top-level
derivations, such as CPU statistics when cgroups are enabled.