develop: switch to using gopass

This commit is contained in:
Timothy DeHerrera 2020-12-21 03:11:50 -07:00
parent 63b4e06098
commit 5620569852
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
4 changed files with 34 additions and 3 deletions

6
overlays/qutebrowser.nix Normal file
View File

@ -0,0 +1,6 @@
final: prev: {
qutebrowser = prev.qutebrowser.overrideAttrs
(o: {
patches = o.patches ++ [ ../profiles/graphical/qutebrowser/0001-Fix-gopass-mime-format-for-qute-pass-userscript.patch ];
});
}

View File

@ -1,7 +1,7 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ ./zsh ./kakoune ./tmux ]; imports = [ ./zsh ./kakoune ./tmux ];
environment.shellAliases = { v = "$EDITOR"; }; environment.shellAliases = { v = "$EDITOR"; pass = "gopass"; };
environment.sessionVariables = { environment.sessionVariables = {
PAGER = "less"; PAGER = "less";
@ -18,7 +18,7 @@
gnupg gnupg
less less
ncdu ncdu
pass gopass
tig tig
tokei tokei
wget wget

View File

@ -0,0 +1,25 @@
From 3284ec900e42b279bc3bc40593d7356ab1e3f9b0 Mon Sep 17 00:00:00 2001
From: Timothy DeHerrera <tim.deh@pm.me>
Date: Mon, 21 Dec 2020 02:50:55 -0700
Subject: [PATCH] Fix gopass mime format for qute-pass userscript
---
misc/userscripts/qute-pass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/misc/userscripts/qute-pass b/misc/userscripts/qute-pass
index b49e87dd8..388a7a737 100755
--- a/misc/userscripts/qute-pass
+++ b/misc/userscripts/qute-pass
@@ -152,6 +152,8 @@ def _run_pass(pass_arguments):
def pass_(path):
+ if arguments.mode == "gopass":
+ return _run_pass(['show', '-o', path])
return _run_pass(['show', path])
--
2.29.2

View File

@ -263,7 +263,7 @@ for mode in\
config.bind('<Alt+j>', 'leave-mode', mode=mode) config.bind('<Alt+j>', 'leave-mode', mode=mode)
# Bindings for normal mode # Bindings for normal mode
config.bind(',p', 'spawn --userscript qute-pass') config.bind(',p', 'spawn --userscript qute-pass -M gopass')
config.bind(',P', 'set-cmd-text -s :open -p') config.bind(',P', 'set-cmd-text -s :open -p')
config.bind(',r', 'restart') config.bind(',r', 'restart')
config.bind(',c', 'config-source') config.bind(',c', 'config-source')