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