MyNixOS website logo
option

programs.rust-motd.order

The order of the sections in . By default they are ordered alphabetically.

Context: since attribute sets in Nix are always ordered alphabetically internally this means that

{
  uptime = { /* ... */ };
  banner = { /* ... */ };
}

will still have banner displayed before uptime.

To work around that, this option can be used to define the order of all keys, i.e.

{
  order = [
    "uptime"
    "banner"
  ];
}

makes sure that uptime is placed before banner in the motd.

Declarations
Type
list of string
Default
attrNames cfg.settings