mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 20:29:47 +01:00
password-store: add environment variables to xsession.importedVariables (#2103)
This ensures that any systemd services that need pass will have the correct environment variables.
This commit is contained in:
parent
fb50102daf
commit
25bf3d7953
1 changed files with 3 additions and 0 deletions
|
@ -58,5 +58,8 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
home.sessionVariables = cfg.settings;
|
||||
|
||||
xsession.importedVariables = mkIf config.xsession.enable
|
||||
(mapAttrsToList (name: value: name) cfg.settings);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue