nixos/ssh: Document authorizedKeysFiles properly

(cherry picked from commit dab747106e20268e6d3a7c1a758185bc75507bef)
This commit is contained in:
Robert Hensing 2021-06-15 12:23:09 +02:00 committed by github-actions[bot]
parent 89ecb51a6a
commit 91d03cd360

View File

@ -247,7 +247,17 @@ in
authorizedKeysFiles = mkOption { authorizedKeysFiles = mkOption {
type = types.listOf types.str; type = types.listOf types.str;
default = []; default = [];
description = "Files from which authorized keys are read."; description = ''
Specify the rules for which files to read on the host.
This is an advanced option. If you're looking to configure user
keys, you can generally use <xref linkend="opt-users.users._name_.openssh.authorizedKeys.keys"/>
or <xref linkend="opt-users.users._name_.openssh.authorizedKeys.keyFiles"/>.
These are paths relative to the host root file system or home
directories and they are subject to certain token expansion rules.
See AuthorizedKeysFile in man sshd_config for details.
'';
}; };
authorizedKeysCommand = mkOption { authorizedKeysCommand = mkOption {