Merge pull request #316152 from NixOS/backport-315656-to-release-24.05

[Backport release-24.05] nixos/version: remove strict type constraints from image options
This commit is contained in:
Nick Cao 2024-06-01 09:39:28 -04:00 committed by GitHub
commit 42d1d59191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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