From a07659f1d4c128a411a9cd48d0445d2305ee44b9 Mon Sep 17 00:00:00 2001 From: FabricSoul Date: Tue, 12 Aug 2025 12:34:16 -0400 Subject: [PATCH] feat: gopass --- files/scripts/gopass.sh | 6 ++++++ home/fabric/programs/gpg.nix | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 files/scripts/gopass.sh create mode 100644 home/fabric/programs/gpg.nix diff --git a/files/scripts/gopass.sh b/files/scripts/gopass.sh new file mode 100755 index 0000000..9e27839 --- /dev/null +++ b/files/scripts/gopass.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +selection=$(gopass list -f | wmenu -p "Search:" -l 10) +if [ -n "$selection" ]; then + gopass show -c "$selection" +fi diff --git a/home/fabric/programs/gpg.nix b/home/fabric/programs/gpg.nix new file mode 100644 index 0000000..a35d7dc --- /dev/null +++ b/home/fabric/programs/gpg.nix @@ -0,0 +1,12 @@ +{...}: { + services.gpg-agent = { + enable = true; + enableZshIntegration = true; + extraConfig = '' + pinentry-program /home/fabric/.nix-profile/bin/pinentry-curses + allow-loopback-pinentry + default-cache-ttl 86400 + max-cache-ttl 31536000 + ''; + }; +}