1 { config, lib, pkgs, ... }:
7 dmcfg = config.services.xserver.displayManager;
8 ldmcfg = dmcfg.lightdm;
9 cfg = ldmcfg.greeters.tiny;
15 services.xserver.displayManager.lightdm.greeters.tiny = {
21 Whether to enable lightdm-tiny-greeter as the lightdm greeter.
23 Note that this greeter starts only the default X session.
24 You can configure the default X session using
25 [](#opt-services.displayManager.defaultSession).
34 The string to represent the user_text label.
42 The string to represent the pass_text label.
48 extraConfig = mkOption {
52 Section to describe style and ui.
60 config = mkIf (ldmcfg.enable && cfg.enable) {
62 services.xserver.displayManager.lightdm.greeters.gtk.enable = false;
64 services.xserver.displayManager.lightdm.greeter =
68 static const char *user_text = "${cfg.label.user}";
69 static const char *pass_text = "${cfg.label.pass}";
70 static const char *session = "${dmcfg.defaultSession}";
72 config = optionalString (cfg.extraConfig != "") (configHeader + cfg.extraConfig);
73 package = pkgs.lightdm-tiny-greeter.override { conf = config; };
76 package = package.xgreeters;
77 name = "lightdm-tiny-greeter";
82 assertion = dmcfg.defaultSession != null;
84 Please set: services.displayManager.defaultSession