mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
22 lines
479 B
Nix
22 lines
479 B
Nix
{
|
|
lib,
|
|
gensokyo-zone,
|
|
...
|
|
}: let
|
|
inherit (gensokyo-zone.lib) mapAlmostOptionDefaults mkAlmostOptionDefault;
|
|
inherit (lib.attrsets) mapAttrs;
|
|
in {
|
|
config.exports.services.motion = {config, ...}: {
|
|
defaults.port.listen = mkAlmostOptionDefault "lan";
|
|
ports = mapAttrs (_: mapAlmostOptionDefaults) {
|
|
default = {
|
|
port = 8080;
|
|
protocol = "http";
|
|
};
|
|
stream = {
|
|
port = 8081;
|
|
protocol = "http";
|
|
};
|
|
};
|
|
};
|
|
}
|