1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-18 12:38:30 +02: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:
Sumner Evans 2021-06-13 16:27:31 -06:00 committed by GitHub
parent fb50102daf
commit 25bf3d7953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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