about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-09-22 00:02:14 +0000
committerGitHub <noreply@github.com>2023-09-22 00:02:14 +0000
commitc651d7d9e9e1439c8398362282f03fa3c7f25dec (patch)
tree68f562b72b840506a73a0208367954b29bb6af90 /nixos
parent25421963c797b02308d2e08d6e7b58c11d1dd40e (diff)
parentaea649223beaf0ade154eff5c3206982d21a5e88 (diff)
downloadnixlib-c651d7d9e9e1439c8398362282f03fa3c7f25dec.tar
nixlib-c651d7d9e9e1439c8398362282f03fa3c7f25dec.tar.gz
nixlib-c651d7d9e9e1439c8398362282f03fa3c7f25dec.tar.bz2
nixlib-c651d7d9e9e1439c8398362282f03fa3c7f25dec.tar.lz
nixlib-c651d7d9e9e1439c8398362282f03fa3c7f25dec.tar.xz
nixlib-c651d7d9e9e1439c8398362282f03fa3c7f25dec.tar.zst
nixlib-c651d7d9e9e1439c8398362282f03fa3c7f25dec.zip
Merge master into staging-next
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/display-managers/gdm.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/gdm.nix b/nixos/modules/services/x11/display-managers/gdm.nix
index e6923bcbb56c..400e5601dc59 100644
--- a/nixos/modules/services/x11/display-managers/gdm.nix
+++ b/nixos/modules/services/x11/display-managers/gdm.nix
@@ -97,6 +97,19 @@ in
         type = types.bool;
       };
 
+      banner = mkOption {
+        type = types.nullOr types.lines;
+        default = null;
+        example = ''
+          foo
+          bar
+          baz
+        '';
+        description = lib.mdDoc ''
+          Optional message to display on the login screen.
+        '';
+      };
+
       settings = mkOption {
         type = settingsFormat.type;
         default = { };
@@ -238,6 +251,11 @@ in
         sleep-inactive-ac-timeout = lib.gvariant.mkInt32 0;
         sleep-inactive-battery-timeout = lib.gvariant.mkInt32 0;
       };
+    }] ++ lib.optionals (cfg.gdm.banner != null) [{
+      settings."org/gnome/login-screen" = {
+        banner-message-enable = true;
+        banner-message-text = cfg.gdm.banner;
+      };
     }] ++ [ "${gdm}/share/gdm/greeter-dconf-defaults" ];
 
     # Use AutomaticLogin if delay is zero, because it's immediate.