summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.org24
1 files changed, 23 insertions, 1 deletions
diff --git a/config.org b/config.org
index 2c218c6..df37047 100644
--- a/config.org
+++ b/config.org
@@ -1675,12 +1675,34 @@ This is equivalent to the message of the day present in some shells. I wanted i
* Pass(1)
The auth-source library allows packages to request password information. It has a password store backend, which is nicer to work with than netrc files.
-#+begin_src elisp
+#+begin_src elisp :tangle no
(require 'auth-source-pass)
(add-to-list 'auth-sources 'password-store)
(auth-source-forget-all-cached)
#+end_src
+I'm trying out using passage instead of pass. To work properly, we also need to setup age decryption. I set the age identities file to the file where i keep my identities for the passage store. I don't really use it for anything else, so this is fine for now.
+
+#+begin_src elisp
+ (require 'age)
+ (setopt age-default-identity "~/.passage/identities")
+ (age-file-enable)
+#+end_src
+
+We also need to make sure we are using rage instead of age. Rage is an implementation of the age command line which allows us to input passwords with pinentry.
+
+#+begin_src elisp
+ (setopt age-program "rage")
+#+end_src
+
+Then we can set up auth-source-passage to allow us to use passage as an auth-source backend.
+
+#+begin_src elisp
+ (require 'auth-source-passage)
+ (add-to-list 'auth-sources 'passage-store)
+ (auth-source-forget-all-cached)
+#+end_src
+
#+begin_src elisp
(package-ensure 'pass)
#+end_src