nixos/config/emacs/modules/sk-auth.el
2024-06-14 15:08:00 +00:00

30 lines
644 B
EmacsLisp

;; -*- lexical-binding: t; -*-
;;; -- Use Emacs for Pinentry -----
;; (use-package pinentry
;; :config
;; (unless (eq system-type 'windows-nt)
;; (setq epa-pinentry-mode 'loopback))
;; (pinentry-start))
;;; -- Password Management -----
(use-package password-store
:bind (("C-c p p" . password-store-copy)
("C-c p i" . password-store-insert)
("C-c p g" . password-store-generate))
:config
(setq password-store-password-length 12))
(use-package auth-source-pass
:config
(auth-source-pass-enable))
;;; -- OAuth2 -----
(use-package oauth2
:ensure t)
(provide 'sk-auth)