Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
ab30bdf6a8
|
@ -10,6 +10,7 @@
|
|||
./disko.nix
|
||||
./features.nix
|
||||
./hardware.nix
|
||||
./homeautomation
|
||||
./webcam
|
||||
];
|
||||
}
|
||||
|
|
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
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -14,8 +14,7 @@
|
|||
services.mpd = {
|
||||
enable = true;
|
||||
network = {
|
||||
listenAddress = "0.0.0.0"; # So it can be controlled from home
|
||||
# TODO ... and whoever is the Wi-Fi network I'm using, which, not great
|
||||
listenAddress = "0.0.0.0"; # Can be controlled remotely, determined with firewall
|
||||
startWhenNeeded = true;
|
||||
};
|
||||
extraConfig = ''
|
||||
|
|
Loading…
Reference in a new issue