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