diff --git a/nixos/doc/manual/release-notes/rl-1803.xml b/nixos/doc/manual/release-notes/rl-1803.xml
index 0ab119232ee..c8549e7c4ad 100644
--- a/nixos/doc/manual/release-notes/rl-1803.xml
+++ b/nixos/doc/manual/release-notes/rl-1803.xml
@@ -189,6 +189,51 @@ following incompatible changes:
corrupted blocks.
+
+
+ displayManager.lightdm.greeters.gtk.clock-format.
+ has been added, the clock format string (as expected by
+ strftime, e.g. %H:%M) to use with the lightdm
+ gtk greeter panel.
+
+
+ If set to null the default clock format is used.
+
+
+
+
+ displayManager.lightdm.greeters.gtk.indicators
+ has been added, a list of allowed indicator modules to use with
+ the lightdm gtk greeter panel.
+
+
+ Built-in indicators include ~a11y,
+ ~language, ~session,
+ ~power, ~clock,
+ ~host, ~spacer. Unity
+ indicators can be represented by short name
+ (e.g. sound, power),
+ service file name, or absolute path.
+
+
+ If set to null the default indicators are
+ used.
+
+
+ In order to have the previous default configuration add
+
+ services.xserver.displayManager.lightdm.greeters.gtk.indicators = [
+ "~host" "~spacer"
+ "~clock" "~spacer"
+ "~session"
+ "~language"
+ "~a11y"
+ "~power"
+ ];
+
+ to your configuration.nix.
+
+
diff --git a/nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix b/nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix
index 1d5dcb2c7cb..35b715b98fc 100644
--- a/nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix
+++ b/nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix
@@ -45,6 +45,8 @@ let
theme-name = ${cfg.theme.name}
icon-theme-name = ${cfg.iconTheme.name}
background = ${ldmcfg.background}
+ ${optionalString (cfg.clock-format != null) "clock-format = ${cfg.clock-format}"}
+ ${optionalString (cfg.indicators != null) "indicators = ${concatStringsSep ";" cfg.indicators}"}
${cfg.extraConfig}
'';
@@ -104,6 +106,35 @@ in
};
+ clock-format = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ example = "%F";
+ description = ''
+ Clock format string (as expected by strftime, e.g. "%H:%M")
+ to use with the lightdm gtk greeter panel.
+
+ If set to null the default clock format is used.
+ '';
+ };
+
+ indicators = mkOption {
+ type = types.nullOr (types.listOf types.str);
+ default = null;
+ example = [ "~host" "~spacer" "~clock" "~spacer" "~session" "~language" "~a11y" "~power" ];
+ description = ''
+ List of allowed indicator modules to use for the lightdm gtk
+ greeter panel.
+
+ Built-in indicators include "~a11y", "~language", "~session",
+ "~power", "~clock", "~host", "~spacer". Unity indicators can be
+ represented by short name (e.g. "sound", "power"), service file name,
+ or absolute path.
+
+ If set to null the default indicators are used.
+ '';
+ };
+
extraConfig = mkOption {
type = types.lines;
default = "";