diff --git a/nixos/modules/programs/ssh.nix b/nixos/modules/programs/ssh.nix index f2d02362a0a8..b31fce915240 100644 --- a/nixos/modules/programs/ssh.nix +++ b/nixos/modules/programs/ssh.nix @@ -142,7 +142,7 @@ in knownHosts = mkOption { default = {}; - type = types.attrsOf (types.submodule ({ name, config, ... }: { + type = types.attrsOf (types.submodule ({ name, config, options, ... }: { options = { certAuthority = mkOption { type = types.bool; @@ -155,6 +155,7 @@ in hostNames = mkOption { type = types.listOf types.str; default = [ name ] ++ config.extraHostNames; + defaultText = literalExpression "[ ${name} ] ++ config.${options.extraHostNames}"; description = '' DEPRECATED, please use extraHostNames. A list of host names and/or IP numbers used for accessing