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