feat(fluidd): take over print

This commit is contained in:
Kat Inskip 2024-08-07 15:21:58 -07:00
parent 6c3727a246
commit 1c8a8f7a9e
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
6 changed files with 82 additions and 21 deletions

View file

@ -5,10 +5,13 @@ in {
services = {
fluidd = {
enable = true;
hostName = "print.local.gensokyo.zone";
nginx.locations."/webcam".proxyPass = let
inherit (motion.cameras) printercam;
inherit (printercam.settings) camera_id;
in "https://kitchen.local.${domain}/${toString camera_id}/stream";
};
};
networking.firewall.interfaces.lan.allowedTCPPorts = [80];
}