From e88f09b330a9d0149ca18f08ed0b55231dd6649e Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Fri, 14 Apr 2023 17:24:46 +0200 Subject: [PATCH] mediaserver: fix --- system/hosts/mediaserver.nix | 2 +- system/nixos/nginx.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/hosts/mediaserver.nix b/system/hosts/mediaserver.nix index 701b99c..58f82ed 100644 --- a/system/hosts/mediaserver.nix +++ b/system/hosts/mediaserver.nix @@ -80,7 +80,7 @@ in "10-lan" = { matchConfig.Name = "ens3"; networkConfig = { - DHCP = "yes"; + DHCP = "ipv4"; IPv6AcceptRA = true; }; linkConfig.RequiredForOnline = "routable"; diff --git a/system/nixos/nginx.nix b/system/nixos/nginx.nix index 4cbbdef..4ebeb25 100644 --- a/system/nixos/nginx.nix +++ b/system/nixos/nginx.nix @@ -28,7 +28,7 @@ networking.firewall.interfaces = let - interfaces = lib.mapAttrsToList (_: value: lib.attrsets.attrByPath [ "matchConfig" "Name" ] null) config.systemd.network.networks ++ [ "tailscale0" ]; + interfaces = lib.mapAttrsToList (_: value: lib.attrsets.attrByPath [ "matchConfig" "Name" ] null value) config.systemd.network.networks ++ [ "tailscale0" ]; in builtins.listToAttrs (builtins.map