{ pkgs, config, lib, ... }: with lib; let cfg = config.eboskma.rust-motd; in { options.eboskma.rust-motd = { enable = mkEnableOption "rust-motd"; }; config = mkIf cfg.enable { programs.rust-motd = { enable = true; settings = { banner = { color = "red"; command = "${pkgs.figlet}/bin/figlet -f slant ${config.networking.hostName}"; }; weather = { loc = "De%20Westereen,%20Netherlands"; }; uptime = { prefix = "up: "; }; filesystems = { root = "/"; }; memory = { swap_pos = "none"; }; }; }; }; }