3
0
Fork 0
forked from mirrors/nixpkgs

nixos/containers: simplify env var definition

Also clear up the misleading comment: This env var isn't
root-specific, it's needed for all users.
This commit is contained in:
Erik Arvstedt 2018-11-26 22:22:09 +01:00
parent 128a446c59
commit c64a9718ce

View file

@ -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";
};