1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

virtualisation.lxc: add the overrides from distrobuilder

This commit is contained in:
Maciej Krüger 2021-04-28 05:32:50 +02:00
parent 1c7a7f198c
commit 5ea329958a
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F

View file

@ -105,6 +105,14 @@ in
extraCommands = "mkdir -p proc sys dev";
});
# Add the overrides from lxd distrobuilder
systemd.extraConfig = ''
[Service]
ProtectProc=default
ProtectControlGroups=no
ProtectKernelTunables=no
'';
# Allow the user to login as root without password.
users.users.root.initialHashedPassword = mkOverride 150 "";