diff options
author | noa@gaiwan.org | 2024-06-29 09:34:29 +0000 |
---|---|---|
committer | noa@gaiwan.org | 2024-06-29 09:34:29 +0000 |
commit | a71e48604adfd1e11d6327ea82786ccce9844a10 (patch) | |
tree | aec6c1f3655aab555117c4514bad27fe3c11f86b /config.org | |
parent | 7fd3f16b9093404fa26601b4a98efd8c496bdb26 (diff) |
Age encryption support
Diffstat (limited to 'config.org')
-rw-r--r-- | config.org | 24 |
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 |