systemd: Delegate cgroup management without turning on controllers.

Nix currently doesn't do any resource control, and Delegate=yes turns on all the controllers.

In particular, this enables using cpusets with cgroups V1 alongside the Nix daemon.
This commit is contained in:
Shea Levy
2026-01-09 23:22:15 -05:00
parent 8b955d80c2
commit d51ac82dd2

View File

@@ -11,7 +11,7 @@ ExecStart=@@bindir@/nix-daemon nix-daemon --daemon
KillMode=process
LimitNOFILE=1048576
TasksMax=1048576
Delegate=yes
Delegate=
[Install]
WantedBy=multi-user.target