From 89b2d645fdfcefcf001f558cff0a72cd24e1f568 Mon Sep 17 00:00:00 2001 From: Quentin Boyer Date: Wed, 28 Aug 2024 10:46:50 +0200 Subject: [PATCH] minimal: Add keychain to manager ssh keys --- minimal/hm.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/minimal/hm.nix b/minimal/hm.nix index 7986804..aef2563 100644 --- a/minimal/hm.nix +++ b/minimal/hm.nix @@ -68,6 +68,7 @@ bat-extras.prettybat just bottom + keychain # Useful for pandoc to latex (texlive.combine { @@ -374,6 +375,11 @@ ''; shellInitLast = '' + # Use set -Ua SSH_KEYS_TO_AUTOLOAD to add a key + if status is-login + and status is-interactive + keychain --eval $SSH_KEYS_TO_AUTOLOAD | source + end ${pkgs.fortune}/bin/fortune \ | ${pkgs.cowsay}/bin/cowsay \