From 57d4f7f05e330b7f0f639f0c11d1622b3e47909b Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 5 Nov 2020 01:57:55 +0000 Subject: [PATCH] nixos/home-manager: do ssh-add when making a login shell --- ops/nixos/lib/home-manager/client.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ops/nixos/lib/home-manager/client.nix b/ops/nixos/lib/home-manager/client.nix index 40f2eae1f4..d7a74a2eb9 100644 --- a/ops/nixos/lib/home-manager/client.nix +++ b/ops/nixos/lib/home-manager/client.nix @@ -28,6 +28,10 @@ ''; }; + programs.bash.initExtra = lib.mkAfter '' + ssh-add -q -l >/dev/null || ssh-add -c -q + ''; + home.packages = lib.mkAfter (with pkgs; [ depot.nix.pkgs.copybara go