Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions modules/programs/ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,24 @@ let
'';
};

pubkeyAuthentication = mkOption {
default = null;
type = types.nullOr (
types.enum [
"yes"
"no"
"unbound"
"host-bound"
]
);
description = ''
Specifies whether to try public key authentication.
The argument must be one of: `yes` (the default), `no`, `unbound`, or `host-bound`.
The final two options relate to the OpenSSH host-bound authentication protocol extension.
See {manpage}`ssh_config(5)` for details.
'';
};

forwardX11 = mkOption {
type = types.bool;
default = false;
Expand Down Expand Up @@ -419,6 +437,7 @@ let
[ "${matchHead}" ]
++ optional (cf.port != null) " Port ${toString cf.port}"
++ optional (cf.forwardAgent != null) " ForwardAgent ${lib.hm.booleans.yesNo cf.forwardAgent}"
++ optional (cf.pubkeyAuthentication != null) " PubkeyAuthentication ${cf.pubkeyAuthentication}"
++ optional cf.forwardX11 " ForwardX11 yes"
++ optional cf.forwardX11Trusted " ForwardX11Trusted yes"
++ optional cf.identitiesOnly " IdentitiesOnly yes"
Expand Down