git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/lxd: disable cgroup v2 when LXD is active
commit30ccbe8eec38870db7fc6d1e7c173e92fb835c96 authorPatryk Wychowaniec <wychowaniec.patryk@gmail.com> dateMon 4 Jan 2021, 10:59 (6 years ago) parent174267e
1 file changed+4
nixos/modules/virtualisation/lxd.nix+4
nixos/modules/virtualisation/lxd.nix+4
@@ -100,6 +100,10 @@ in
100100 packages = [ cfg.lxcPackage ];
101101 };
102102
103+ # TODO: remove once LXD gets proper support for cgroupsv2
104+ # (currently most of the e.g. CPU accounting stuff doesn't work)
105+ systemd.enableUnifiedCgroupHierarchy = false;
106+
103107 systemd.services.lxd = {
104108 description = "LXD Container Management Daemon";
105109