server/fili/services/websites/totpal.nix
Jana Dönszelmann c0870ccac3
Some checks failed
/ lint (push) Failing after 31s
retry
2025-08-20 11:49:20 +02:00

25 lines
465 B
Nix

{ flakes, pkgs, ... }:
let
totpal = flakes.totpal.packages.${pkgs.system}.default;
in
{
services.nginx = {
virtualHosts."totpal.donsz.nl" = {
forceSSL = true;
http2 = true;
enableACME = true;
locations."/" = {
proxyPass = "http://[::1]:2442";
};
};
};
systemd.services.totpal = {
description = "totpal";
serviceConfig = {
Type = "simple";
ExecStart = "${totpal}/bin/totpal";
};
};
}