From 30ccbe8eec38870db7fc6d1e7c173e92fb835c96 Mon Sep 17 00:00:00 2001 From: Patryk Wychowaniec Date: Mon, 4 Jan 2021 10:59:19 +0100 Subject: nixos/lxd: disable cgroup v2 when LXD is active --- nixos/modules/virtualisation/lxd.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nixos') diff --git a/nixos/modules/virtualisation/lxd.nix b/nixos/modules/virtualisation/lxd.nix index 3958fc2c1d7c..103e689abae8 100644 --- a/nixos/modules/virtualisation/lxd.nix +++ b/nixos/modules/virtualisation/lxd.nix @@ -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"; -- cgit v1.2.3