motd: module init

This commit is contained in:
Zynh Ludwig 2024-12-27 23:31:44 -08:00
parent e75a383b5e
commit bf2805b1a7
2 changed files with 32 additions and 0 deletions

View file

@ -3,6 +3,7 @@
{ {
permafrost.nyazoom.enable = true; permafrost.nyazoom.enable = true;
permafrost.forgejo.enable = true; permafrost.forgejo.enable = true;
permafrost.motd.enable = true;
permafrost.acme.enable = true; permafrost.acme.enable = true;
permafrost.acme.useStagingServer = false; permafrost.acme.useStagingServer = false;

31
modules/motd.nix Normal file
View file

@ -0,0 +1,31 @@
{ 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";
# };
# };
};
};
}