Force enable unified cgroup hierarchy.

Otherwise systemd's MaxMemory setting is silently ignored.
This commit is contained in:
Gabriel Ebner 2021-08-30 13:01:09 +02:00
parent 19070abca7
commit ce44a334cc

@ -51,6 +51,8 @@
virtualisation.lxd.recommendedSysctlSettings = true;
virtualisation.lxc.lxcfs.enable = true;
systemd.enableUnifiedCgroupHierarchy = pkgs.lib.mkForce true;
boot.kernel.sysctl = {
"kernel.perf_event_paranoid" = "0";
"kernel.kptr_restrict" = pkgs.lib.mkForce "0";