Force enable unified cgroup hierarchy.
Otherwise systemd's MaxMemory setting is silently ignored.
This commit is contained in:
parent
19070abca7
commit
ce44a334cc
@ -51,6 +51,8 @@
|
|||||||
virtualisation.lxd.recommendedSysctlSettings = true;
|
virtualisation.lxd.recommendedSysctlSettings = true;
|
||||||
virtualisation.lxc.lxcfs.enable = true;
|
virtualisation.lxc.lxcfs.enable = true;
|
||||||
|
|
||||||
|
systemd.enableUnifiedCgroupHierarchy = pkgs.lib.mkForce true;
|
||||||
|
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"kernel.perf_event_paranoid" = "0";
|
"kernel.perf_event_paranoid" = "0";
|
||||||
"kernel.kptr_restrict" = pkgs.lib.mkForce "0";
|
"kernel.kptr_restrict" = pkgs.lib.mkForce "0";
|
||||||
|
Loading…
Reference in New Issue
Block a user