diff options
author | makefu <github@syntax-fehler.de> | 2019-07-16 19:48:47 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-07-16 19:48:47 +0200 |
commit | 31944ce77dfd63f0778952b6ae5a29f7ae8a0cab (patch) | |
tree | 70911dd983ebe026da49a54c138b987c4bee028b /krebs/1systems/wolf | |
parent | 64c0ea71430e4aeb0bfe385439c631b3c4d6b8f3 (diff) |
wolf.r: also use openhab ip address
Diffstat (limited to 'krebs/1systems/wolf')
-rw-r--r-- | krebs/1systems/wolf/config.nix | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/krebs/1systems/wolf/config.nix b/krebs/1systems/wolf/config.nix index 9a7371c13..d2f0eaeb0 100644 --- a/krebs/1systems/wolf/config.nix +++ b/krebs/1systems/wolf/config.nix @@ -1,6 +1,7 @@ { config, pkgs, ... }: let 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"; ext-if = "et0"; external-mac = "52:54:b0:0b:af:fe"; @@ -89,10 +90,16 @@ in networking = { firewall.enable = false; firewall.allowedTCPPorts = [ 8088 8086 8083 ]; - interfaces."${ext-if}".ipv4.addresses = [{ - address = shack-ip; - prefixLength = 20; - }]; + interfaces."${ext-if}".ipv4.addresses = [ + { + address = shack-ip; + prefixLength = 20; + } + { + address = openhab-ip; + prefixLength = 20; + } + ]; defaultGateway = "10.42.0.1"; nameservers = [ "10.42.0.100" "10.42.0.200" ]; |