summary refs log tree commit diff
path: root/nixos/modules/services/x11/display-managers/lightdm.nix
diff options
context:
space:
mode:
authorMariusz `shd` Gliwiński <shd@nawia.net>2021-09-18 00:52:30 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-11-12 17:31:13 +0100
commit8e3d255347f7c9d28390563d1830da89af7ef867 (patch)
tree0a020eec60cca8ee8965a4581ed0791de3c69f14 /nixos/modules/services/x11/display-managers/lightdm.nix
parentb7d071664dadfe8dd3db28e1f808923fda779b19 (diff)
downloadnixpkgs-8e3d255347f7c9d28390563d1830da89af7ef867.tar
nixpkgs-8e3d255347f7c9d28390563d1830da89af7ef867.tar.gz
nixpkgs-8e3d255347f7c9d28390563d1830da89af7ef867.tar.bz2
nixpkgs-8e3d255347f7c9d28390563d1830da89af7ef867.tar.lz
nixpkgs-8e3d255347f7c9d28390563d1830da89af7ef867.tar.xz
nixpkgs-8e3d255347f7c9d28390563d1830da89af7ef867.tar.zst
nixpkgs-8e3d255347f7c9d28390563d1830da89af7ef867.zip
[nixos/lightdm] allow for background option to be either path or color
Diffstat (limited to 'nixos/modules/services/x11/display-managers/lightdm.nix')
-rw-r--r--nixos/modules/services/x11/display-managers/lightdm.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/display-managers/lightdm.nix b/nixos/modules/services/x11/display-managers/lightdm.nix
index 1c9a5f978c5..9a7532b4764 100644
--- a/nixos/modules/services/x11/display-managers/lightdm.nix
+++ b/nixos/modules/services/x11/display-managers/lightdm.nix
@@ -146,7 +146,7 @@ in
       };
 
       background = mkOption {
-        type = types.path;
+        type = types.either types.path (types.strMatching "^#[0-9]\{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 = ''