3
0
Fork 0
forked from mirrors/nixpkgs

Rename environment.systemVariables -> environment.sessionVariables

This makes it clearer that they're part of PAM sessions.
This commit is contained in:
Eelco Dolstra 2014-06-13 17:56:46 +02:00
parent 27c72f337b
commit f5055e2ef6
6 changed files with 7 additions and 7 deletions

View file

@ -76,7 +76,7 @@ in
environment.systemPackages = [ glibcLocales ];
environment.systemVariables =
environment.sessionVariables =
{ LANG = config.i18n.defaultLocale;
LOCALE_ARCHIVE = "/run/current-system/sw/lib/locale/locale-archive";
};

View file

@ -14,7 +14,7 @@ in
options = {
environment.systemVariables = mkOption {
environment.sessionVariables = mkOption {
default = {};
description = ''
A set of environment variables used in the global environment.
@ -48,7 +48,7 @@ in
''
${concatStringsSep "\n" (
(mapAttrsToList (n: v: ''${n}="${concatStringsSep ":" v}"'')
(zipAttrsWith (const concatLists) ([ (mapAttrs (n: v: [ v ]) cfg.systemVariables) ]))))}
(zipAttrsWith (const concatLists) ([ (mapAttrs (n: v: [ v ]) cfg.sessionVariables) ]))))}
'';
};

View file

@ -30,7 +30,7 @@ in
config = {
environment.systemVariables.TZDIR = "/etc/zoneinfo";
environment.sessionVariables.TZDIR = "/etc/zoneinfo";
systemd.globalEnvironment.TZDIR = tzdir;

View file

@ -23,7 +23,7 @@ in
EDITOR = "nano";
};
environment.systemVariables =
environment.sessionVariables =
{ NIX_PATH =
[ "/nix/var/nix/profiles/per-user/root/channels/nixos"
"nixpkgs=/etc/nixos/nixpkgs"

View file

@ -12,7 +12,7 @@ with lib;
}
];
environment.systemVariables =
environment.sessionVariables =
{ OPENSSL_X509_CERT_FILE = "/etc/ssl/certs/ca-bundle.crt";
CURL_CA_BUNDLE = "/etc/ssl/certs/ca-bundle.crt";
GIT_SSL_CAINFO = "/etc/ssl/certs/ca-bundle.crt";

View file

@ -318,7 +318,7 @@ in
};
# Set up the environment variables for running Nix.
environment.systemVariables = cfg.envVars;
environment.sessionVariables = cfg.envVars;
environment.extraInit =
''