Merge: nixos/rust-motd: fix conf (#438328)

Changed files
+3 -1
nixos
modules
programs
+3 -1
nixos/modules/programs/rust-motd.nix
···
# Order the sections in the TOML according to the order of sections
# in `cfg.order`.
motdConf =
-
pkgs.runCommand "motd.conf"
{
__structuredAttrs = true;
inherit (cfg) order settings;
···
security.pam.services.sshd.showMotd = lib.mkIf cfg.enableMotdInSSHD true;
users.motdFile = lib.mkIf cfg.enableMotdInSSHD "/var/lib/rust-motd/motd";
services.openssh.extraConfig =
lib.mkIf (cfg.settings ? last_login && cfg.settings.last_login != { })
···
# Order the sections in the TOML according to the order of sections
# in `cfg.order`.
motdConf =
+
pkgs.runCommand "motd.toml"
{
__structuredAttrs = true;
inherit (cfg) order settings;
···
security.pam.services.sshd.showMotd = lib.mkIf cfg.enableMotdInSSHD true;
users.motdFile = lib.mkIf cfg.enableMotdInSSHD "/var/lib/rust-motd/motd";
+
+
programs.rust-motd.settings.global.show_legacy_warning = false;
services.openssh.extraConfig =
lib.mkIf (cfg.settings ? last_login && cfg.settings.last_login != { })