nixos/flannel: Refactor to use config.networking.fqdnOrHostName

This commit is contained in:
Robert Hensing 2022-10-06 16:22:27 +02:00
parent 185f12d96f
commit 06a1a29467

View File

@ -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";
};