summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-19 00:08:22 +0200
committerKyren223 <Kyren223@proton.me>2024-11-19 00:08:22 +0200
commit924953acc45a6f54b7fd4f06874179e9f36c536e (patch)
tree9edc946651cc7b4c3a006eca69d359f93dc042f6
parentbd3da886d9bc4ad2f0bc5a4f3858d099d555dfdd (diff)
Added keychain to not have to retype ssh passphrases
-rw-r--r--.zshrc4
-rw-r--r--nixos/hosts/default/home.nix1
2 files changed, 3 insertions, 2 deletions
diff --git a/.zshrc b/.zshrc
index 4885e5d..92bd969 100644
--- a/.zshrc
+++ b/.zshrc
@@ -103,8 +103,8 @@ export FZF_DEFAULT_OPTS=" \
# esac
# # pnpm end
#
-# # Start ssh-agent if not running
-# eval $(keychain --quiet --eval --timeout 180 ~/.ssh/id_ed25519)
+# Start ssh-agent if not running
+eval $(keychain --quiet --eval --timeout 300 ~/.ssh/id_ed25519)
# # Open tmux if it's not open
# if [ -z "$TMUX" ]; then
diff --git a/nixos/hosts/default/home.nix b/nixos/hosts/default/home.nix
index 574012a..1020447 100644
--- a/nixos/hosts/default/home.nix
+++ b/nixos/hosts/default/home.nix
@@ -32,6 +32,7 @@
zoxide
tmux
bc
+ keychain
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the