summaryrefslogtreecommitdiffstats
path: root/nixos
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
parentb7d071664dadfe8dd3db28e1f808923fda779b19 (diff)
[nixos/lightdm] allow for background option to be either path or color
Diffstat (limited to 'nixos')
-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 1c9a5f978c54..9a7532b47641 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 = ''