mpd/curacao: Can be controlled remotely
This commit is contained in:
parent
0c59a713da
commit
1615abd814
3 changed files with 12 additions and 2 deletions
10
curacao/homeautomation/default.nix
Normal file
10
curacao/homeautomation/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
config = {
|
||||
# Allow mpd control from home assistant and phone
|
||||
networking.firewall.extraCommands = ''
|
||||
iptables -A nixos-fw -p tcp -m tcp --dport 6600 -s 192.168.7.53 -j nixos-fw-accept
|
||||
iptables -A nixos-fw -p tcp -m tcp --dport 6600 -s 192.168.7.92 -j nixos-fw-accept
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue