* Move the generation of /etc/nix.machines to the nix-daemon module.

svn path=/nixos/branches/modular-nixos/; revision=15765
This commit is contained in:
Eelco Dolstra
2009-05-28 12:56:56 +00:00
parent e4716ce3ef
commit de7aae5d5e
4 changed files with 37 additions and 42 deletions

View File

@@ -15,7 +15,6 @@
wrapperDir = config.security.wrapperDir;
modulesTree = config.system.modulesTree;
defaultLocale = config.i18n.defaultLocale;
nixEnvVars = config.nix.envVars;
shellInit = config.environment.shellInit;
};
target = "bashrc";

View File

@@ -9,21 +9,8 @@ export LANG=@defaultLocale@
export EDITOR=nano
export INFOPATH=/var/run/current-system/sw/info:/var/run/current-system/sw/share/info
export LOCATE_PATH=/var/cache/locatedb
@shellInit@
export LOCALE_ARCHIVE=/var/run/current-system/sw/lib/locale/locale-archive
# Set up secure multi-user builds: non-root users build through the
# Nix daemon.
if test "$USER" != root; then
export NIX_REMOTE=daemon
else
export NIX_REMOTE=
fi
# Set up the environment variables for running Nix.
@nixEnvVars@
@shellInit@
# Include the various profiles in the appropriate environment variables.