Add listmonk

This commit is contained in:
mewp 2025-02-09 11:48:42 +00:00
parent 2a5d42cbb1
commit d887567e3b
3 changed files with 42 additions and 0 deletions

View file

@ -13,8 +13,10 @@
./nextcloud.nix
./authentik.nix
./forgejo.nix
./listmonk.nix
./backups.nix
./site.nix
./dns.nix
];
boot.loader.systemd-boot.enable = true;

24
dns.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, config, ... }: let
mewp-nixos = builtins.fetchGit {
url = "https://gitlab.com/mewp/mewp-nixos";
rev = "7927ac83f90d82f894877ac1ede04a54ed4e6d24";
};
in {
imports = [
"${mewp-nixos}/dns.nix"
];
config = {
mewp.dns.zones."news.cebula.camp" = {
SOA = {
nameServer = "szalotka.cebula.camp";
adminEmail = "hostmaster@cebula.camp";
serial = 0;
};
NS = [ "szalotka.cebula.camp." ];
A = [ "135.181.235.222" ];
MX = [ "10 szalotka.cebula.camp." ];
TXT = [ "v=spf1 mx -all" ];
};
};
}

16
listmonk.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs, config, ... }: {
services.listmonk = {
enable = true;
database.createLocally = true;
settings.app.address = "127.0.0.1:9002";
};
services.nginx.virtualHosts."news.cebula.camp" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:9002";
};
};
}