rust-motd: removed service_status section since it's relatively useless

This commit is contained in:
Tigor Hutasuhut 2024-06-20 15:52:53 +07:00
parent 9007b42d93
commit 66426cf9d6

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
cfg = config.profile.services.rust-motd; cfg = config.profile.services.rust-motd;
inherit (lib) mkIf mkMerge; inherit (lib) mkIf;
in in
{ {
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -15,12 +15,6 @@ in
color = "white"; color = "white";
command = "${pkgs.fortune-kind}/bin/fortune-kind | ${pkgs.neo-cowsay}/bin/cowsay --random"; command = "${pkgs.fortune-kind}/bin/fortune-kind | ${pkgs.neo-cowsay}/bin/cowsay --random";
}; };
service_status = mkMerge [
{ }
(mkIf config.profile.podman.pihole.enable { Pihole = "podman-pihole"; })
(mkIf config.profile.podman.qbittorrent.enable { QBittorrent = "podman-qbittorrent"; })
(mkIf config.profile.services.forgejo.enable { Forgejo = "forgejo"; })
];
uptime = { uptime = {
prefix = "Up"; prefix = "Up";
}; };
@ -41,7 +35,6 @@ in
"last_login" "last_login"
"uptime" "uptime"
"memory" "memory"
"service_status"
"filesystems" "filesystems"
"last_run" "last_run"
]; ];