summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@localhost>2025-01-21 16:20:00 +0000
committerroot <root@localhost>2025-01-21 16:20:00 +0000
commitb3b65175c48e67686a6b97156ae11596a54ebbd2 (patch)
treec83e19aba323ea578cab1bf3f4b8aa4b3115a271
parent5290a23366f4941d5742ce20e55783b74eb3e4e1 (diff)
back to sanity
-rw-r--r--machines/work.nix4
-rw-r--r--mut/nushell/config.nu5
2 files changed, 8 insertions, 1 deletions
diff --git a/machines/work.nix b/machines/work.nix
index aa720bf..86dc916 100644
--- a/machines/work.nix
+++ b/machines/work.nix
@@ -53,6 +53,10 @@
file."gpg-agent.conf" = {
text = ''
pinentry-program /opt/homebrew/bin/pinentry-mac
+ enable-ssh-support
+ ttyname $GPG_TTY
+ default-cache-ttl 60
+ max-cache-ttl 120
'';
target = ".gnupg/gpg-agent.conf";
};
diff --git a/mut/nushell/config.nu b/mut/nushell/config.nu
index ec9dc2d..38decfd 100644
--- a/mut/nushell/config.nu
+++ b/mut/nushell/config.nu
@@ -1,5 +1,8 @@
if ($env | default "" DOCKER_NAME | get DOCKER_NAME | is-empty) {
- try {pnsh-nvim}
+ if ("~/.gnupg/S.gpg-agent.ssh" | path exists) {
+ ln -sf ("~/.gnupg/S.gpg-agent.ssh" | path expand) $env.SSH_AUTH_SOCK
+ }
+ try {pnsh-nvim}
} else {
use ~/Programming/Pionative/quickstart/.venv/bin/activate.nu
}