Merge pull request #108380 from Patryk27/fixes/lxd-cgroup-v2

nixos/lxd: disable cgroup v2 when LXD is active
This commit is contained in:
Sandro 2021-01-08 00:23:35 +01:00 committed by GitHub
commit 58514b3428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,10 @@ in
packages = [ cfg.lxcPackage ];
};
# TODO: remove once LXD gets proper support for cgroupsv2
# (currently most of the e.g. CPU accounting stuff doesn't work)
systemd.enableUnifiedCgroupHierarchy = false;
systemd.services.lxd = {
description = "LXD Container Management Daemon";