diff --git a/modules/system/activation/activation-script.nix b/modules/system/activation/activation-script.nix index 1aad1f37c2d..a8e67f8ebce 100644 --- a/modules/system/activation/activation-script.nix +++ b/modules/system/activation/activation-script.nix @@ -129,6 +129,14 @@ in mkdir -p /media ''; + system.activationScripts.cgroups = + '' + if ! ${pkgs.sysvtools}/bin/mountpoint -q /dev/cgroup; then + mkdir -p /dev/cgroup + ${pkgs.utillinux}/bin/mount -t cgroup none /dev/cgroup + fi + ''; + }; }