mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
pun-sort
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -1515,11 +1515,11 @@
|
||||
"rust-overlay": "rust-overlay_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1766923069,
|
||||
"narHash": "sha256-RTW7ZlqnTue6o6yr2rzIT9MhfQPucDFnx4RgE7e4fNo=",
|
||||
"lastModified": 1766957585,
|
||||
"narHash": "sha256-nDybJRbEgvFI291/WX6cYiQ1eG2Owz87Lc0ALVcb2nI=",
|
||||
"owner": "kmein",
|
||||
"repo": "scripts",
|
||||
"rev": "8c8acef0d204ebd606d240ea829478f664f588fd",
|
||||
"rev": "047016aff810844e1f62ce3fc80a97fe0f6754fc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -255,6 +255,7 @@
|
||||
|
||||
# packaged from inputs
|
||||
agenix = agenix.packages.${prev.stdenv.hostPlatform.system}.default;
|
||||
pun-sort-api = scripts.packages.${prev.stdenv.hostPlatform.system}.pun-sort-api;
|
||||
alarm = scripts.packages.${prev.stdenv.hostPlatform.system}.alarm;
|
||||
menstruation-telegram =
|
||||
menstruation-telegram.packages.${prev.stdenv.hostPlatform.system}.menstruation-telegram;
|
||||
|
||||
@@ -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