mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
pun-sort
This commit is contained in:
@@ -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
29
systems/ful/pun-sort.nix
Normal 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}/";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user