diff options
author | Jakub Okoński <jakub@okonski.org> | 2022-10-29 22:22:57 +0200 |
---|---|---|
committer | Jakub Okoński <jakub@okonski.org> | 2022-11-06 17:12:02 +0100 |
commit | 12508ac79a3b940d42580e9cfb7d2037e7af3b00 (patch) | |
tree | 5d15998a7a2d4ad0f248aa35de8b9a431ce4689e /nixos/modules | |
parent | b0bce6ae731d5be0aed3277eab29d7ae7491d08d (diff) | |
download | nixpkgs-12508ac79a3b940d42580e9cfb7d2037e7af3b00.tar nixpkgs-12508ac79a3b940d42580e9cfb7d2037e7af3b00.tar.gz nixpkgs-12508ac79a3b940d42580e9cfb7d2037e7af3b00.tar.bz2 nixpkgs-12508ac79a3b940d42580e9cfb7d2037e7af3b00.tar.lz nixpkgs-12508ac79a3b940d42580e9cfb7d2037e7af3b00.tar.xz nixpkgs-12508ac79a3b940d42580e9cfb7d2037e7af3b00.tar.zst nixpkgs-12508ac79a3b940d42580e9cfb7d2037e7af3b00.zip |
nixos-container: force systemd-nspawn to use unified cgroups hierarchy
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/virtualisation/nixos-containers.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/nixos-containers.nix b/nixos/modules/virtualisation/nixos-containers.nix index 22be1d5bff9..4d51c53a604 100644 --- a/nixos/modules/virtualisation/nixos-containers.nix +++ b/nixos/modules/virtualisation/nixos-containers.nix @@ -138,6 +138,8 @@ let fi ''} + export SYSTEMD_NSPAWN_UNIFIED_HIERARCHY=1 + # Run systemd-nspawn without startup notification (we'll # wait for the container systemd to signal readiness) # Kill signal handling means systemd-nspawn will pass a system-halt signal |