~ruther/guix-config

ad27cab700259644203cbbc693fe014d2aa66d39 — Rutherther 7 months ago 084b830
feat: add password store wrapped with wl deps
2 files changed, 28 insertions(+), 1 deletions(-)

M home/home-configuration.scm
A home/modules/ruther/home/passwords.scm
M home/home-configuration.scm => home/home-configuration.scm +1 -1
@@ 51,7 51,7 @@
     "git" "openssh"

     ;; Passwords
     "gnupg" "password-store" "pass-otp"
     "gnupg" "password-store-wl" "pass-otp"

     ;; DBus services
     "mako"

A home/modules/ruther/home/passwords.scm => home/modules/ruther/home/passwords.scm +27 -0
@@ 0,0 1,27 @@
(define-module (ruther home passwords)
  #:use-module (guix gexp)
  #:use-module (guix utils)
  #:use-module (guix packages)
  #:use-module (ruther packages wayland)
  #:use-module (gnu packages xdisorg)
  #:use-module (gnu packages password-utils))

(define-public password-store-wl
  (package/inherit password-store
    (name "password-store-wl")
    (inputs (modify-inputs (package-inputs password-store)
              (append dmenu-wl ydotool)))
    (arguments
     (substitute-keyword-arguments (package-arguments password-store)
       ((#:phases original-phases)
        #~(modify-phases #$original-phases
            (add-after 'patch-passmenu-path 'patch-passmenu-wl-path
              (lambda* (#:key inputs #:allow-other-keys)
                (substitute* "contrib/dmenu/passmenu"
                  (("dmenu=dmenu-wl\n")
                   (string-append "dmenu="
                                  (search-input-file inputs "/bin/dmenu-wl")
                                  "\n"))
                  (("xdotool=\"ydotool")
                   (string-append "xdotool=\""
                                  (search-input-file inputs "/bin/ydotool"))))))))))))

Do not follow this link