diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2021-07-17 13:08:15 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2021-07-17 13:08:15 -0400 |
commit | 0c54c3c53042c99fc0b2dc81550435f107cd1ea1 (patch) | |
tree | 094f643125e7f503a9c176467b0f20a1adca57fe | |
parent | 9f3c8baa76f03acb7a16293e1c2fb91dda5ea3cc (diff) |
router changes
-rw-r--r-- | config/router.nix | 11 | ||||
-rw-r--r-- | machines/firelink.nix | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/config/router.nix b/config/router.nix index 7f39c7a..8c686ff 100644 --- a/config/router.nix +++ b/config/router.nix @@ -8,6 +8,7 @@ in { orbekk.mullvad.enable = true; services.tftpd.enable = true; + services.openntpd.enable = true; networking.networkmanager.enable = lib.mkForce false; @@ -175,7 +176,7 @@ in { #}; networking.dhcpcd = { - # Wain for v4 and v6 addresses. + # Wait for v4 and v6 addresses. # wait = "both"; extraConfig = '' debug @@ -262,7 +263,13 @@ in { }; networking.interfaces."${lan-dev}".useDHCP = false; - networking.interfaces."${lan-dev}.255".useDHCP = true; + networking.interfaces."${lan-dev}.255" = { + ipv4.addresses = [{ + address = "10.10.255.3"; + prefixLength = 24; + }]; + useDHCP = false; + }; networking.interfaces."${lan-dev}.100" = { ipv4.addresses = [{ address = "10.65.30.1"; diff --git a/machines/firelink.nix b/machines/firelink.nix index 356a513..8019f4b 100644 --- a/machines/firelink.nix +++ b/machines/firelink.nix @@ -28,10 +28,12 @@ in { orbekk.simple-firewall.allowedTCPPorts = [ # pulseaudio 4713 + 69 ]; orbekk.simple-firewall.allowedUDPPorts = [ # avahi 5353 + 69 ]; environment.systemPackages = with pkgs; [ |