1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00
Files
niveum/systems/ful/pun-sort.nix

30 lines
569 B
Nix
Raw Normal View History

2025-12-28 22:34:42 +01:00
{
config,
pkgs,
lib,
...
}:
let
punPort = 9007;
in
{
systemd.services.pun-sort = {
enable = true;
serviceConfig.Type = "simple";
wantedBy = [ "multi-user.target" ];
environment = {
PORT = toString punPort;
PATH = lib.mkForce (lib.makeBinPath [ pkgs.espeak-ng ]);
};
serviceConfig.ExecStart = lib.getExe pkgs.pun-sort-api;
};
services.nginx.virtualHosts."pun-sort.kmein.de" = {
enableACME = true;
forceSSL = true;
locations = {
"/".proxyPass = "http://127.0.0.1:${toString punPort}/";
};
};
}