From bbfceed8eed07a4bffa118b87acd872b604dc657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samu=20N=C3=A9meth?= Date: Fri, 31 Oct 2025 16:02:07 +0100 Subject: [PATCH] nixos/lightdm: fix hex color code type validation Fixed not allowing characters [A-Fa-f] for hex color in LightDM background option. --- nixos/modules/services/x11/display-managers/lightdm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/display-managers/lightdm.nix b/nixos/modules/services/x11/display-managers/lightdm.nix index 8226f2cf0be5..be0f4bf368bb 100644 --- a/nixos/modules/services/x11/display-managers/lightdm.nix +++ b/nixos/modules/services/x11/display-managers/lightdm.nix @@ -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 = ''