nixos/spec/eientei/mosquitto.nix

18 lines
544 B
Nix
Raw Normal View History

2024-02-02 07:33:17 +08:00
{
services.mosquitto = {
enable = true;
listeners = [ {
users.frigate = {
acl = [ "readwrite #" ];
hashedPassword = "$7$101$Zt3Me3AkHbrKBbbI$SsLTGeTwtkFGXS2F1/S3Vg6w7TcgMLU037ttedKaw/Ela0wgqbaAVxecK1j5i5TDw9OjZMkNI9mUzz9l0d7vcg==";
};
2024-02-02 09:15:35 +08:00
users.root = {
acl = [ "readwrite #" ];
hashedPassword = "$7$101$FjpEh+NpG27RltQe$u2dmg9wz+BBnp1s4z6E6x95TyGO5B9RM2z51qxetvAqO4QDvye1J3UCdMvjuz52iMqzZ3eKi+T2xDeLR7CeMgQ==";
};
2024-02-02 07:33:17 +08:00
} ];
};
networking.firewall.allowedTCPPorts = [ 1883 ];
}