summary refs log tree commit diff
path: root/nixos/modules/services/x11/display-managers/lightdm.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-02-27 10:48:12 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-02-27 10:48:12 +0100
commit3cf9cd8bc30c5e271822adaeb5069b19879acc8c (patch)
treece9fe94c3ed47c78ac741fb35f572aa6bcece2a8 /nixos/modules/services/x11/display-managers/lightdm.nix
parenta8b44c74d351a60c7b6c7e30d8b62b85aaa00f94 (diff)
parent4fede53c0996938979d2966a69f108782a8c1c12 (diff)
downloadnixlib-3cf9cd8bc30c5e271822adaeb5069b19879acc8c.tar
nixlib-3cf9cd8bc30c5e271822adaeb5069b19879acc8c.tar.gz
nixlib-3cf9cd8bc30c5e271822adaeb5069b19879acc8c.tar.bz2
nixlib-3cf9cd8bc30c5e271822adaeb5069b19879acc8c.tar.lz
nixlib-3cf9cd8bc30c5e271822adaeb5069b19879acc8c.tar.xz
nixlib-3cf9cd8bc30c5e271822adaeb5069b19879acc8c.tar.zst
nixlib-3cf9cd8bc30c5e271822adaeb5069b19879acc8c.zip
Merge #12796: nixos docs: show references to packages
(version 2) A better implementation of #10039, after #12357.
This time I did more thorough checking.

See commit messages for details.
Diffstat (limited to 'nixos/modules/services/x11/display-managers/lightdm.nix')
-rw-r--r--nixos/modules/services/x11/display-managers/lightdm.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/services/x11/display-managers/lightdm.nix b/nixos/modules/services/x11/display-managers/lightdm.nix
index 3949bf01a316..ac7db3d9adc4 100644
--- a/nixos/modules/services/x11/display-managers/lightdm.nix
+++ b/nixos/modules/services/x11/display-managers/lightdm.nix
@@ -87,6 +87,7 @@ in
 
       background = mkOption {
         type = types.str;
+        default = "${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png";
         description = ''
           The background image or color to use.
         '';
@@ -152,9 +153,6 @@ in
     };
 
     users.extraGroups.lightdm.gid = config.ids.gids.lightdm;
-
-    services.xserver.displayManager.lightdm.background = mkDefault "${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png";
-
     services.xserver.tty     = null; # We might start multiple X servers so let the tty increment themselves..
     services.xserver.display = null; # We specify our own display (and logfile) in xserver-wrapper up there
   };