programs.ssh.knownHosts: Use submodule

This commit is contained in:
Eelco Dolstra 2015-08-27 15:29:05 +02:00
parent 287c08d8a3
commit 7c6ff6c1da

View File

@ -102,20 +102,7 @@ in
knownHosts = mkOption {
default = {};
type = types.loaOf types.optionSet;
description = ''
The set of system-wide known SSH hosts.
'';
example = [
{
hostNames = [ "myhost" "myhost.mydomain.com" "10.10.1.4" ];
publicKeyFile = literalExample "./pubkeys/myhost_ssh_host_dsa_key.pub";
}
{
hostNames = [ "myhost2" ];
publicKeyFile = literalExample "./pubkeys/myhost2_ssh_host_dsa_key.pub";
}
];
type = types.loaOf (types.submodule {
options = {
hostNames = mkOption {
type = types.listOf types.str;
@ -149,6 +136,20 @@ in
'';
};
};
});
description = ''
The set of system-wide known SSH hosts.
'';
example = [
{
hostNames = [ "myhost" "myhost.mydomain.com" "10.10.1.4" ];
publicKeyFile = literalExample "./pubkeys/myhost_ssh_host_dsa_key.pub";
}
{
hostNames = [ "myhost2" ];
publicKeyFile = literalExample "./pubkeys/myhost2_ssh_host_dsa_key.pub";
}
];
};
};