mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
Merge pull request #51085 from erikarvstedt/container-config
containers: simplify env var definition
This commit is contained in:
commit
331755f959
|
@ -22,12 +22,8 @@ with lib;
|
|||
# Not supported in systemd-nspawn containers.
|
||||
security.audit.enable = false;
|
||||
|
||||
# Make sure that root user in container will talk to host nix-daemon
|
||||
environment.etc."profile".text = ''
|
||||
export NIX_REMOTE=daemon
|
||||
'';
|
||||
|
||||
|
||||
# Use the host's nix-daemon.
|
||||
environment.variables.NIX_REMOTE = "daemon";
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue