mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
14 lines
407 B
Nix
14 lines
407 B
Nix
{ config, gensokyo-zone, ... }: let
|
|
inherit (config.services) motion;
|
|
inherit (gensokyo-zone.lib) domain;
|
|
in {
|
|
services = {
|
|
fluidd = {
|
|
enable = true;
|
|
nginx.locations."/webcam".proxyPass = let
|
|
inherit (motion.cameras) printercam;
|
|
inherit (printercam.settings) camera_id;
|
|
in "https://kitchen.local.${domain}/${toString camera_id}/stream";
|
|
};
|
|
};
|
|
}
|