nixos-infra/services/synapse/options.nix
Rustam Efimov 30ce0dafc2
Some checks failed
Nix CI / build (push) Failing after 31s
initial commit
2026-04-01 08:50:01 +03:00

37 lines
784 B
Nix

{
lib,
config,
...
}:
with lib;
{
options.machine.synapse = {
enable = mkEnableOption "Synapse";
element = {
enable = mkEnableOption "Elemenet web";
domain = mkOption {
type = types.nullOr types.str;
default = "chat.${config.machine.synapse.domain}";
description = "Domain name.";
};
};
domain = mkOption {
type = types.str;
default = "example.com";
description = "Domain name.";
};
port = mkOption {
type = types.port;
default = 8008;
description = "Listen port.";
};
metrics = {
enable = mkEnableOption "Synapse metrics";
port = mkOption {
type = types.port;
default = 9000;
description = "Listen port.";
};
};
};
}