1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
This commit is contained in:
2025-12-28 22:34:42 +01:00
parent 6a873fb764
commit 4188968ee1
4 changed files with 34 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
imports = [
./hardware-configuration.nix
./matomo.nix
./pun-sort.nix
./radio.nix
./panoptikon.nix
./hledger.nix

29
systems/ful/pun-sort.nix Normal file
View File

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