add defaultText
Co-authored-by: pennae <82953136+pennae@users.noreply.github.com>
This commit is contained in:
@@ -142,7 +142,7 @@ in
|
|||||||
|
|
||||||
knownHosts = mkOption {
|
knownHosts = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
type = types.attrsOf (types.submodule ({ name, config, ... }: {
|
type = types.attrsOf (types.submodule ({ name, config, options, ... }: {
|
||||||
options = {
|
options = {
|
||||||
certAuthority = mkOption {
|
certAuthority = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
@@ -155,6 +155,7 @@ in
|
|||||||
hostNames = mkOption {
|
hostNames = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [ name ] ++ config.extraHostNames;
|
default = [ name ] ++ config.extraHostNames;
|
||||||
|
defaultText = literalExpression "[ ${name} ] ++ config.${options.extraHostNames}";
|
||||||
description = ''
|
description = ''
|
||||||
DEPRECATED, please use <literal>extraHostNames</literal>.
|
DEPRECATED, please use <literal>extraHostNames</literal>.
|
||||||
A list of host names and/or IP numbers used for accessing
|
A list of host names and/or IP numbers used for accessing
|
||||||
|
|||||||
Reference in New Issue
Block a user