mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-16 09:38:59 -05:00
I haven't slept for 24 hours I literally couldn't care less
This commit is contained in:
parent
5b53eff0f3
commit
f24fc3fea2
9 changed files with 72 additions and 58 deletions
|
|
@ -1,14 +1,27 @@
|
|||
{ inputs, config, ... }:
|
||||
let
|
||||
sopsFolder = inputs.nix-secrets + "/sops";
|
||||
in
|
||||
{
|
||||
sops.secrets."frigate/mqtt/pass" = {
|
||||
sopsFile = "${sopsFolder}/services.yaml";
|
||||
};
|
||||
services.mosquitto = {
|
||||
enable = true;
|
||||
listeners = [
|
||||
{
|
||||
acl = ["pattern readwrite #"];
|
||||
omitPasswordAuth = true;
|
||||
settings.allow_anonymous = true;
|
||||
port = 1883;
|
||||
users = {
|
||||
frigate = {
|
||||
passwordFile = config.sops.secrets."frigate/mqtt/pass".path;
|
||||
acl = [
|
||||
"readwrite frigate/#"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [1883];
|
||||
networking.firewall.allowedTCPPorts = [ 1883 ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue