forked from Zynh0722/permafrost
motd: module init
This commit is contained in:
parent
e75a383b5e
commit
bf2805b1a7
2 changed files with 32 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
permafrost.nyazoom.enable = true;
|
||||
permafrost.forgejo.enable = true;
|
||||
permafrost.motd.enable = true;
|
||||
permafrost.acme.enable = true;
|
||||
permafrost.acme.useStagingServer = false;
|
||||
|
||||
|
|
31
modules/motd.nix
Normal file
31
modules/motd.nix
Normal 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";
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue