Unverified Commit 749aec84 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

nixos/nspawn: cgroupsv2 by default

That way you also get features like cgroup accounting for systemd units
when using systemd-nspawn w/o classic nixos containers.
parent e2a62277
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -127,6 +127,9 @@ in {
        })
        {
          systemd.targets.multi-user.wants = [ "machines.target" ];
          systemd.services."systemd-nspawn@".environment = {
            SYSTEMD_NSPAWN_UNIFIED_HIERARCHY = mkDefault "1";
          };
        }
      ];
}