Skip to content

Commit c572304

Browse files
committed
fix(ssh): allow hosts without gpg forwarding
Default missing host gpgAgent metadata to false so SSH host entries can opt in only when forwarding is needed.
1 parent 93262b6 commit c572304

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/common/programs/terminal/tools/ssh/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ let
3232
remote-user-id = if remote.system == "darwin" then "501" else "1000";
3333

3434
forward-gpg =
35-
lib.optionalString (config.programs.gnupg.agent.enable && remote.gpgAgent)
35+
lib.optionalString (config.programs.gnupg.agent.enable && (remote.gpgAgent or false))
3636
" RemoteForward /run/user/${remote-user-id}/gnupg/S.gpg-agent /run/user/${user-id}/gnupg/S.gpg-agent.extra\n RemoteForward /run/user/${remote-user-id}/gnupg/S.gpg-agent.ssh /run/user/${user-id}/gnupg/S.gpg-agent.ssh";
3737
port-expr = lib.optionalString (remote.system == "nixos") " Port ${toString cfg.port}";
3838

0 commit comments

Comments
 (0)