nixos/flannel: Refactor to use config.networking.fqdnOrHostName
This commit is contained in:
parent
185f12d96f
commit
06a1a29467
1 changed files with 2 additions and 4 deletions
|
@ -92,10 +92,8 @@ in {
|
|||
Needed when running with Kubernetes as backend as this cannot be auto-detected";
|
||||
'';
|
||||
type = types.nullOr types.str;
|
||||
default = with config.networking; (hostName + optionalString (domain != null) ".${domain}");
|
||||
defaultText = literalExpression ''
|
||||
with config.networking; (hostName + optionalString (domain != null) ".''${domain}")
|
||||
'';
|
||||
default = config.networking.fqdnOrHostName;
|
||||
defaultText = literalExpression "config.networking.fqdnOrHostName";
|
||||
example = "node1.example.com";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue