mirror of
https://github.com/kmein/niveum
synced 2026-03-19 19:41: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"
|
"rust-overlay": "rust-overlay_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1766923069,
|
"lastModified": 1766957585,
|
||||||
"narHash": "sha256-RTW7ZlqnTue6o6yr2rzIT9MhfQPucDFnx4RgE7e4fNo=",
|
"narHash": "sha256-nDybJRbEgvFI291/WX6cYiQ1eG2Owz87Lc0ALVcb2nI=",
|
||||||
"owner": "kmein",
|
"owner": "kmein",
|
||||||
"repo": "scripts",
|
"repo": "scripts",
|
||||||
"rev": "8c8acef0d204ebd606d240ea829478f664f588fd",
|
"rev": "047016aff810844e1f62ce3fc80a97fe0f6754fc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -255,6 +255,7 @@
|
|||||||
|
|
||||||
# packaged from inputs
|
# packaged from inputs
|
||||||
agenix = agenix.packages.${prev.stdenv.hostPlatform.system}.default;
|
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;
|
alarm = scripts.packages.${prev.stdenv.hostPlatform.system}.alarm;
|
||||||
menstruation-telegram =
|
menstruation-telegram =
|
||||||
menstruation-telegram.packages.${prev.stdenv.hostPlatform.system}.menstruation-telegram;
|
menstruation-telegram.packages.${prev.stdenv.hostPlatform.system}.menstruation-telegram;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./matomo.nix
|
./matomo.nix
|
||||||
|
./pun-sort.nix
|
||||||
./radio.nix
|
./radio.nix
|
||||||
./panoptikon.nix
|
./panoptikon.nix
|
||||||
./hledger.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