diff options
author | Artturi <Artturin@artturin.com> | 2023-09-21 23:40:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 23:40:15 +0300 |
commit | ff10769cc9482d526b168129d3bf5da15e9fa1fe (patch) | |
tree | 36bf60e73ab3e7ae4d9cc9f021a06022a57fd8fe /nixos/modules/services/x11 | |
parent | d126740fe55b81881abf908b5b4020a9a5af7a64 (diff) | |
parent | 67c5103f409f244ec9de2a21e8094aeea96e0b4e (diff) |
Merge pull request #165298 from danielfullmer/gdm-banner
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r-- | nixos/modules/services/x11/display-managers/gdm.nix | 18 |
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 e6923bcbb56c0..400e5601dc59a 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. |