1
0
Fork 0
permafrost/modules/motd.nix
2024-12-27 23:31:44 -08:00

31 lines
668 B
Nix

{ 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";
};
# 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";
# };
# };
};
};
}