From 11cb74ce0d2c073a5cb9083fa5ed18509829bff6 Mon Sep 17 00:00:00 2001
From: Gabriella Bere <contact@gabbie.blue>
Date: Sun, 1 Sep 2024 10:46:29 +0100
Subject: [PATCH] add pass to protonmail-bridge path

---
 home-manager/home.nix                | 3 ++-
 hosts/gabbielaptop/configuration.nix | 6 +++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/home-manager/home.nix b/home-manager/home.nix
index 71db3c7..819b4e9 100644
--- a/home-manager/home.nix
+++ b/home-manager/home.nix
@@ -18,7 +18,8 @@
   # States home manager version that config was originally compatible with, do not change without reading all patch notes since this version and altering as needed
   home.stateVersion = "24.05";
 
-  services.pass-secret-service.enable = true;
+  services.pass-secret-service.enable = true; # for use with protonmail-bridge
+#  services.gnome-keyring.enable = true; # should be easier for protonmail-bridge
 
   # Cursor configuration that I hope to one day understand, currently has a scaling issue but thats probably my fault
   home.pointerCursor = 
diff --git a/hosts/gabbielaptop/configuration.nix b/hosts/gabbielaptop/configuration.nix
index 8f6695a..c570105 100644
--- a/hosts/gabbielaptop/configuration.nix
+++ b/hosts/gabbielaptop/configuration.nix
@@ -137,7 +137,11 @@
   programs.steam.enable = true;
   programs.steam.remotePlay.openFirewall = true;  
 
-  services.protonmail-bridge.enable = true;
+  # This desperately needs moving to home.nix but the home-manager module is not yet available
+  services.protonmail-bridge = {
+    enable = true;
+    path = [ pkgs.pass-secret-service ]
+  };
 
   # protonmail daemon config
 #  systemd.user.services.protonmail-bridge = {