nixos/lightdm: fix hex color code type validation

Fixed not allowing characters [A-Fa-f] for hex color in LightDM background option.
This commit is contained in:
Samu Németh
2025-11-19 10:28:16 +01:00
parent f737011313
commit bbfceed8ee
@@ -156,7 +156,7 @@ in
};
background = mkOption {
type = types.either types.path (types.strMatching "^#[0-9]{6}$");
type = types.either types.path (types.strMatching "^#[0-9A-Fa-f]{6}$");
# Manual cannot depend on packages, we are actually setting the default in config below.
defaultText = literalExpression "pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath";
description = ''