motd: ssl certs and systemd status

This commit is contained in:
Zynh Ludwig 2024-12-28 00:48:29 -08:00
parent 1eee0f5491
commit 1318cedfb2

View file

@ -9,7 +9,20 @@ in
};
config = lib.mkIf cfg.enable {
systemd.services.rust-motd.serviceConfig = {
Group = "nginx";
};
programs.rust-motd.enable = true;
programs.rust-motd.order = [
"last_run"
"uptime"
"s_s_l_certs"
"filesystems"
"docker"
"service_status"
"last_login"
];
programs.rust-motd.settings = {
uptime = {
prefix = "up";
@ -17,16 +30,25 @@ in
filesystems = {
root = "/";
};
service_status = {
Foundry = "foundry";
Nginx = "nginx";
Nyazoom = "nyazoom";
};
docker = {
"/forgejo" = "Forgejo";
"/ddb-importer-ddb-proxy-1" = "ddb-proxy";
};
# s_s_l_certs = lib.mkIf config.permafrost.acme.enable {
# sort_method = "manual";
# certs = {
# "scarlet.zynh.me" = "${config.security.acme.certs.permafrost.directory}/key.pem";
# };
# };
s_s_l_certs = lib.mkIf config.permafrost.acme.enable {
sort_method = "manual";
certs = {
"scarlet.zynh.me" = "${config.security.acme.certs.permafrost.directory}/fullchain.pem";
};
};
last_login = {
ravenshade = 3;
};
last_run = { };
};
};
}