mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 12:53:54 +00:00
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.
This commit is contained in:
parent
e2a6227705
commit
749aec8444
@ -127,6 +127,9 @@ in {
|
||||
})
|
||||
{
|
||||
systemd.targets.multi-user.wants = [ "machines.target" ];
|
||||
systemd.services."systemd-nspawn@".environment = {
|
||||
SYSTEMD_NSPAWN_UNIFIED_HIERARCHY = mkDefault "1";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user