Jump to content

LightDM: Difference between revisions

From Official NixOS Wiki
Phobos (talk | contribs)
Created a page for LightDM
 
Phobos (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
== Installation ==
== Installation ==
LightDM may be installed and set to start automatically by enabling it in your configuration file.
LightDM may be installed and set to start automatically by enabling it in your configuration file.
{{File|3=services.xserver.displayManager.lightdm.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}}
{{File|3=services.xserver.displayManager.lightdm.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}}{{Warning|1=LightDM relies on X11, to use it make sure that <code>services.xserver.enable = true;</code>  is set in your configuration.}}


== Configuration ==
== Configuration ==
Additional options may be found under [https://mynixos.com/nixpkgs/options/services.xserver.displayManager.lightdm services.xserver.displayManager.lightdm].
Additional options may be found under [https://mynixos.com/nixpkgs/options/services.xserver.displayManager.lightdm services.xserver.displayManager.lightdm].
{{File|3=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;
};|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;

};