systemd: revert systemd-environment-generator usage for environment variables (#2001)
This commit is contained in:
parent
77188bcd6e
commit
01ec2aaefe
5 changed files with 9 additions and 12 deletions
|
|
@ -37,11 +37,17 @@ in {
|
|||
|
||||
config = mkMerge [
|
||||
(mkIf (cfg.config != [ ]) {
|
||||
home.sessionVariables.XDG_CONFIG_DIRS =
|
||||
"${configDirs}\${XDG_CONFIG_DIRS:+:$XDG_CONFIG_DIRS}";
|
||||
|
||||
systemd.user.sessionVariables.XDG_CONFIG_DIRS =
|
||||
"${configDirs}\${XDG_CONFIG_DIRS:+:$XDG_CONFIG_DIRS}";
|
||||
})
|
||||
|
||||
(mkIf (cfg.data != [ ]) {
|
||||
home.sessionVariables.XDG_DATA_DIRS =
|
||||
"${dataDirs}\${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}";
|
||||
|
||||
systemd.user.sessionVariables.XDG_DATA_DIRS =
|
||||
"${dataDirs}\${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}";
|
||||
})
|
||||
|
|
|
|||
|
|
@ -333,11 +333,6 @@ in
|
|||
unset systemdStatus
|
||||
''
|
||||
);
|
||||
|
||||
# Export environment variables in systemd.user.sessionVariables to login shells.
|
||||
home.sessionVariablesExtra = optionalString (cfg.sessionVariables != {}) ''
|
||||
export $(${pkgs.systemd}/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue