1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 06:59:45 +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:
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);
};
}