From e218eb25f38a9b537bff48745736f2bf6c722441 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Tue, 23 Sep 2025 21:10:34 -0500 Subject: [PATCH] added gmail credentials file --- homeManagerModules/sops.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/homeManagerModules/sops.nix b/homeManagerModules/sops.nix index 236f2d1..9b4cfb3 100644 --- a/homeManagerModules/sops.nix +++ b/homeManagerModules/sops.nix @@ -34,9 +34,14 @@ in path = "${config.xdg.configHome}/sops-nix/gmail_api_credentials.json"; }; }; + + home.sessionVariables = { + GMAIL_CREDS_PATH = "${config.xdg.configHome}/sops-nix/gmail_api_credentials.json"; + }; + home.packages = with pkgs; [ (writeShellScriptBin "edit-secrets" '' - sops --config ${sopsConfigPath} ${sopsSecretsPath} + ${sops}/bin/sops --config ${sopsConfigPath} ${sopsSecretsPath} '') sops age