stuff
This commit is contained in:
parent
1ac7e0c6e1
commit
6200ef7e76
5 changed files with 115 additions and 123 deletions
|
|
@ -1,20 +1,23 @@
|
|||
{ sops, config, ...}: {
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
config = lib.mkIf config.server.home-assistant.enable {
|
||||
|
||||
sops.secrets."home-assistant/mosquitto/hass" = {};
|
||||
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;
|
||||
};
|
||||
}
|
||||
];
|
||||
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 ];
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 1883 ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue