Fix Hetzner IP regex

This commit is contained in:
Vili Sinervä 2025-07-06 13:12:22 +03:00
parent 76ef3f5c74
commit a3b4f74efb
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos

View file

@ -9,7 +9,7 @@ in
default = false;
};
ipv4Address = lib.mkOption {
type = with lib.types; nullOr (strMatching "^[0-9a-zA-Z:]+/32$");
type = with lib.types; nullOr (strMatching "^[0-9]+.[0-9]+.[0-9]+.[0-9]+/32$");
default = null;
};
ipv6Address = lib.mkOption {