New service: Zigbee2Mqtt with Mosquitto for HA2
This commit is contained in:
parent
ddc4415b70
commit
af8f675734
10 changed files with 192 additions and 1 deletions
38
hosts/zigbee2mqtt/default.nix
Normal file
38
hosts/zigbee2mqtt/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
p = import ../parameters.nix;
|
||||
in
|
||||
{
|
||||
|
||||
age.secrets = {
|
||||
mqtt-password.file = ../../secrets/mqtt-password.age;
|
||||
zigbee2mqtt-password.file = ../../secrets/zigbee2mqtt-password.age;
|
||||
};
|
||||
|
||||
my = {
|
||||
|
||||
networking = {
|
||||
zigbee2mqtt = {
|
||||
enable = true;
|
||||
enable-metric = true;
|
||||
mqtt-passwordFile = config.age.secrets.mqtt-password.path;
|
||||
z2mqtt-passwordFile = config.age.secrets.zigbee2mqtt-password.path;
|
||||
};
|
||||
};
|
||||
|
||||
utils = {
|
||||
commons.enable = true;
|
||||
commons.gc.enable = true;
|
||||
lxc-standard.enable = true;
|
||||
};
|
||||
|
||||
virtualisation.proxmox.enable = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue