forked from mirrors/nixpkgs
Merge pull request #89407 from primeos/empty-hostname-fix
nixos: Allow empty hostnames again
This commit is contained in:
commit
a448d9156b
|
@ -381,7 +381,7 @@ in
|
||||||
# syntax). Note: We also allow underscores for compatibility/legacy
|
# syntax). Note: We also allow underscores for compatibility/legacy
|
||||||
# reasons (as undocumented feature):
|
# reasons (as undocumented feature):
|
||||||
type = types.strMatching
|
type = types.strMatching
|
||||||
"^[[:alpha:]]([[:alnum:]_-]{0,61}[[:alnum:]])?$";
|
"^$|^[[:alpha:]]([[:alnum:]_-]{0,61}[[:alnum:]])?$";
|
||||||
description = ''
|
description = ''
|
||||||
The name of the machine. Leave it empty if you want to obtain it from a
|
The name of the machine. Leave it empty if you want to obtain it from a
|
||||||
DHCP server (if using DHCP). The hostname must be a valid DNS label (see
|
DHCP server (if using DHCP). The hostname must be a valid DNS label (see
|
||||||
|
|
Loading…
Reference in a new issue