1 { config, lib, pkgs, ... }:
7 dmcfg = config.services.xserver.displayManager;
8 ldmcfg = dmcfg.lightdm;
9 cfg = ldmcfg.greeters.mini;
11 miniGreeterConf = pkgs.writeText "lightdm-mini-greeter.conf"
15 show-password-label = true
16 password-label-text = Password:
17 invalid-password-text = Invalid Password
18 show-input-cursor = true
19 password-alignment = right
33 text-color = "#080800"
34 error-color = "#F8F8F0"
35 background-image = "${ldmcfg.background}"
36 background-color = "#1B1D1E"
37 window-color = "#F92672"
38 border-color = "#080800"
41 password-color = "#F8F8F0"
42 password-background-color = "#1B1D1E"
43 password-border-color = "#080800"
44 password-border-width = 2px
53 services.xserver.displayManager.lightdm.greeters.mini = {
59 Whether to enable lightdm-mini-greeter as the lightdm greeter.
61 Note that this greeter starts only the default X session.
62 You can configure the default X session using
63 [](#opt-services.displayManager.defaultSession).
75 extraConfig = mkOption {
79 Extra configuration that should be put in the lightdm-mini-greeter.conf
88 config = mkIf (ldmcfg.enable && cfg.enable) {
90 services.xserver.displayManager.lightdm.greeters.gtk.enable = false;
92 services.xserver.displayManager.lightdm.greeter = mkDefault {
93 package = pkgs.lightdm-mini-greeter.xgreeters;
94 name = "lightdm-mini-greeter";
97 environment.etc."lightdm/lightdm-mini-greeter.conf".source = miniGreeterConf;