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
commit 4726504fea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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.