Skip to content

Commit

Permalink
Add Matterbridge
Browse files Browse the repository at this point in the history
  • Loading branch information
samhh committed Dec 19, 2024
1 parent 4309100 commit 40d5a0e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions homelab/svc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
imports = [
./hass.nix
./matterbridge.nix
./mosquitto.nix
./zigbee2mqtt.nix
];
Expand Down
23 changes: 23 additions & 0 deletions homelab/svc/matterbridge.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ ... }:

let
lanPort = 8283;
in
{
networking.firewall = {
allowedTCPPorts = [
lanPort
];
};

virtualisation.oci-containers.containers = {
matterbridge = {
image = "docker.io/luligu/matterbridge:1.6.7";
volumes = [
"matterbridge-upper:/root/Matterbridge"
"matterbridge-dot:/root/.matterbridge"
];
extraOptions = [ "--network=host" ];
};
};
}

0 comments on commit 40d5a0e

Please sign in to comment.