mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-20 22:14:14 -05:00
27 lines
541 B
Nix
27 lines
541 B
Nix
{ inputs, config, ... }:
|
|
let
|
|
sopsFolder = inputs.nix-secrets + "/sops";
|
|
in
|
|
{
|
|
sops.secrets."frigate/mqtt/pass" = {
|
|
sopsFile = "${sopsFolder}/services.yaml";
|
|
};
|
|
services.mosquitto = {
|
|
enable = true;
|
|
listeners = [
|
|
{
|
|
port = 1883;
|
|
users = {
|
|
frigate = {
|
|
passwordFile = config.sops.secrets."frigate/mqtt/pass".path;
|
|
acl = [
|
|
"readwrite frigate/#"
|
|
];
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 1883 ];
|
|
}
|