diff options
Diffstat (limited to 'nixos/modules/misc')
-rw-r--r-- | nixos/modules/misc/version.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/misc/version.nix b/nixos/modules/misc/version.nix index 4b33a2e3151ac..c929c3b37285b 100644 --- a/nixos/modules/misc/version.nix +++ b/nixos/modules/misc/version.nix @@ -115,7 +115,7 @@ in image = { id = lib.mkOption { - type = lib.types.nullOr lib.types.str; + type = types.nullOr (types.strMatching "^[a-z0-9._-]+$"); default = null; description = lib.mdDoc '' Image identifier. @@ -129,7 +129,7 @@ in }; version = lib.mkOption { - type = lib.types.nullOr lib.types.str; + type = types.nullOr (types.strMatching "^[a-z0-9._-]+$"); default = null; description = lib.mdDoc '' Image version. |