Jump to content

LightDM: Difference between revisions

From Official NixOS Wiki
Phobos (talk | contribs)
mNo edit summary
Phobos (talk | contribs)
mNo edit summary
 
Line 17: Line 17:
   background = "#ffa07a";
   background = "#ffa07a";


   # Example of an image background (must be an absolute path)
   # Example of the default image background (must be an absolute path)
   #background = pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath;
   #background = pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath;


};|name=/etc/nixos/configuration.nix|lang=nix}}
};|name=/etc/nixos/configuration.nix|lang=nix}}

Latest revision as of 00:47, 18 December 2025

LightDM is a lightweight, cross-desktop display manager. It is built on X11 but is capable of launching Wayland sessions.

Installation

LightDM may be installed and set to start automatically by enabling it in your configuration file.

❄︎ /etc/nixos/configuration.nix
services.xserver.displayManager.lightdm.enable = true;
⚠︎
Warning: LightDM relies on X11, to use it make sure that services.xserver.enable = true; is set in your configuration.

Configuration

Additional options may be found under services.xserver.displayManager.lightdm.

❄︎ /etc/nixos/configuration.nix
services.xserver.displayManager.lightdm = {
  enable = true;

  # Setting gtk as the greeter
  greeters.gtk.enable = true;

  # Example of having background as a particular color
  background = "#ffa07a";

  # Example of the default image background (must be an absolute path)
  #background = pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath;

};