Unverified Commit 1879e2f0 authored by Maximilian Bosch's avatar Maximilian Bosch Committed by GitHub
Browse files

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

parents 1c599680 6c0f6923
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ let
  # Order the sections in the TOML according to the order of sections
  # in `cfg.order`.
  motdConf =
    pkgs.runCommand "motd.conf"
    pkgs.runCommand "motd.toml"
      {
        __structuredAttrs = true;
        inherit (cfg) order settings;
@@ -154,6 +154,8 @@ in
    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 != { })
        ''