mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
18 lines
473 B
Nix
18 lines
473 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";
|
|
};
|
|
};
|
|
};
|
|
}
|