update
This commit is contained in:
parent
a18e244ba5
commit
05a9d96d4e
26 changed files with 861 additions and 182 deletions
20
server/home-assistant/mosquitto.nix
Normal file
20
server/home-assistant/mosquitto.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ sops, config, ...}: {
|
||||
|
||||
sops.secrets."home-assistant/mosquitto/hass" = {};
|
||||
|
||||
services.mosquitto = {
|
||||
enable = true;
|
||||
listeners = [
|
||||
{
|
||||
address = "192.168.178.111";
|
||||
port = 1883;
|
||||
users.hass = {
|
||||
acl = [ "readwrite #" ];
|
||||
hashedPasswordFile = config.sops.secrets."home-assistant/mosquitto/hass".path;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 1883 ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue