forked from Zynh0722/permafrost
motd: ssl certs and systemd status
This commit is contained in:
parent
1eee0f5491
commit
1318cedfb2
1 changed files with 28 additions and 6 deletions
|
@ -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 = { };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue