1
0
Fork 0
permafrost/modules/motd.nix

33 lines
719 B
Nix
Raw Normal View History

2024-12-27 23:31:44 -08:00
{ lib, config, ... }:
let
cfg = config.permafrost.motd;
in
{
options.permafrost.motd = {
enable = lib.mkEnableOption "nginx nixos module";
};
config = lib.mkIf cfg.enable {
programs.rust-motd.enable = true;
programs.rust-motd.settings = {
uptime = {
prefix = "up";
};
filesystems = {
root = "/";
};
docker = {
"/forgejo" = "Forgejo";
2024-12-28 00:39:23 -08:00
"/ddb-importer-ddb-proxy-1" = "ddb-proxy";
2024-12-27 23:31:44 -08:00
};
# 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";
# };
# };
};
};
}