From 25bf3d79531ce45fd36866205bf07a24bb3be2b9 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Sun, 13 Jun 2021 16:27:31 -0600 Subject: [PATCH] password-store: add environment variables to xsession.importedVariables (#2103) This ensures that any systemd services that need pass will have the correct environment variables. --- modules/programs/password-store.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/programs/password-store.nix b/modules/programs/password-store.nix index db31146a1..658750b8e 100644 --- a/modules/programs/password-store.nix +++ b/modules/programs/password-store.nix @@ -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); }; }