Merge pull request #315656 from nikstur/os-release-remove-type-constraints

nixos/version: remove strict type constraints from image options
This commit is contained in:
WilliButz
2024-05-31 14:51:20 +02:00
committed by GitHub

View File

@@ -121,7 +121,7 @@ in
image = {
id = lib.mkOption {
type = types.nullOr (types.strMatching "^[a-z0-9._-]+$");
type = types.nullOr types.str;
default = null;
description = ''
Image identifier.
@@ -135,7 +135,7 @@ in
};
version = lib.mkOption {
type = types.nullOr (types.strMatching "^[a-z0-9._-~^]+$");
type = types.nullOr types.str;
default = null;
description = ''
Image version.