1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +02:00

chore: add garage door sensor

This commit is contained in:
oddlama 2025-04-27 10:46:11 +02:00
parent 1ee5b2aa1a
commit 97625ae36c
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 11 additions and 0 deletions

View file

@ -7,6 +7,13 @@
generator.script = "alnum";
};
age.secrets.mosquitto-pw-garage-door = {
mode = "440";
owner = "hass";
group = "mosquitto";
generator.script = "alnum";
};
services.mosquitto = {
enable = true;
persistence = true;
@ -22,6 +29,10 @@
passwordFile = config.age.secrets.mosquitto-pw-home-assistant.path;
acl = [ "readwrite #" ];
};
garage_door_sensor = {
passwordFile = config.age.secrets.mosquitto-pw-garage-door.path;
acl = [ "readwrite #" ];
};
};
settings.allow_anonymous = false;
}