From 3a28439153d6a55a880653accec5637ab9533f20 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sat, 20 Aug 2022 16:45:34 +0200 Subject: [PATCH] AddKeysToAgent defaulting to yes. Added UseKeychain if on macos --- roles/home/ssh.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/home/ssh.nix b/roles/home/ssh.nix index a625ef3..136904e 100644 --- a/roles/home/ssh.nix +++ b/roles/home/ssh.nix @@ -1,3 +1,5 @@ +{ pkgs, lib, ... }: + { programs.ssh = { enable = true; @@ -166,6 +168,7 @@ extraConfig = '' IdentitiesOnly yes ServerAliveInterval 3600 - ''; + AddKeysToAgent yes + '' + lib.optionalString pkgs.stdenv.isDarwin "UseKeychain yes"; }; -} +} \ No newline at end of file