wolf.r: also use openhab ip address
This commit is contained in:
parent
64c0ea7143
commit
31944ce77d
@ -1,6 +1,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
shack-ip = config.krebs.build.host.nets.shack.ip4.addr;
|
shack-ip = config.krebs.build.host.nets.shack.ip4.addr;
|
||||||
|
openhab-ip = "10.42.2.139"; # powerraw contains the hardcoded ip of openhab.shack
|
||||||
influx-host = "127.0.0.1";
|
influx-host = "127.0.0.1";
|
||||||
ext-if = "et0";
|
ext-if = "et0";
|
||||||
external-mac = "52:54:b0:0b:af:fe";
|
external-mac = "52:54:b0:0b:af:fe";
|
||||||
@ -89,10 +90,16 @@ in
|
|||||||
networking = {
|
networking = {
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
firewall.allowedTCPPorts = [ 8088 8086 8083 ];
|
firewall.allowedTCPPorts = [ 8088 8086 8083 ];
|
||||||
interfaces."${ext-if}".ipv4.addresses = [{
|
interfaces."${ext-if}".ipv4.addresses = [
|
||||||
|
{
|
||||||
address = shack-ip;
|
address = shack-ip;
|
||||||
prefixLength = 20;
|
prefixLength = 20;
|
||||||
}];
|
}
|
||||||
|
{
|
||||||
|
address = openhab-ip;
|
||||||
|
prefixLength = 20;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
defaultGateway = "10.42.0.1";
|
defaultGateway = "10.42.0.1";
|
||||||
nameservers = [ "10.42.0.100" "10.42.0.200" ];
|
nameservers = [ "10.42.0.100" "10.42.0.200" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user