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:
parent
1c7a7f198c
commit
5ea329958a
|
@ -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 "";
|
||||
|
||||
|
|
Loading…
Reference in a new issue