summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorPatryk Wychowaniec <wychowaniec.patryk@gmail.com>2021-01-04 10:59:19 +0100
committerPatryk Wychowaniec <wychowaniec.patryk@gmail.com>2021-01-04 11:25:30 +0100
commit30ccbe8eec38870db7fc6d1e7c173e92fb835c96 (patch)
treee2d0b71fb39c53cab45534580b2a9d5bef50b4ea /nixos
parent174267e601bc2d525a685084d9712841b3ef93da (diff)
nixos/lxd: disable cgroup v2 when LXD is active
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/lxd.nix4
1 files changed, 4 insertions, 0 deletions
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";