Skip to content

Commit

Permalink
Merge pull request #321935 from Ma27/nspawn-cgroupsv2
Browse files Browse the repository at this point in the history
nixos/nspawn: cgroupsv2 by default
  • Loading branch information
flokli authored Jul 12, 2024
2 parents 8f4e996 + 749aec8 commit 68767b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixos/modules/system/boot/systemd/nspawn.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ in {
})
{
systemd.targets.multi-user.wants = [ "machines.target" ];
systemd.services."systemd-nspawn@".environment = {
SYSTEMD_NSPAWN_UNIFIED_HIERARCHY = mkDefault "1";
};
}
];
}

0 comments on commit 68767b5

Please sign in to comment.