curacao: Allow Wake On Lan

This commit is contained in:
Geoffrey Frogeye 2024-04-23 17:57:20 +02:00
parent 6e15aa2ea7
commit 98af492b75
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -1,10 +1,13 @@
{ 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
'';
networking = {
# Allow mpd control from home assistant and phone
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
'';
interfaces.enp3s0.wakeOnLan.enable = true;
};
};
}