diff --git a/hosts/x86_64-linux/beleth/default.nix b/hosts/x86_64-linux/beleth/default.nix index 85e6040..a7a18a7 100644 --- a/hosts/x86_64-linux/beleth/default.nix +++ b/hosts/x86_64-linux/beleth/default.nix @@ -14,6 +14,7 @@ with lib; { ./transmission.nix ./lanrarari.nix ./uptime.nix + ./networking.nix ./git.nix ./docker.nix ../../gc.nix diff --git a/hosts/x86_64-linux/beleth/networking.nix b/hosts/x86_64-linux/beleth/networking.nix index 39c21d9..a1ebe37 100644 --- a/hosts/x86_64-linux/beleth/networking.nix +++ b/hosts/x86_64-linux/beleth/networking.nix @@ -5,24 +5,34 @@ ... }: { imports = [./wireguard.nix]; - networking.interfaces = { - enp0s31f6 = { - ipv4 = { - adresses = [ - { - address = "88.99.90.90"; - prefixLength = 26; - } - ]; - }; - ipv6 = { - adresses = [ - { - address = "2a01:4f8:10a:1aab::2"; - prefixLength = 80; - } - ]; + networking = { + interface = { + enp0s31f6 = { + ipv4 = { + adresses = [ + { + address = "88.99.90.90"; + prefixLength = 26; + } + ]; + }; + ipv6 = { + adresses = [ + { + address = "2a01:4f8:10a:1aab::2"; + prefixLength = 80; + } + ]; + }; }; }; + defaultGateway = { + interface = "enp0s31f6"; + address = "88.99.90.65"; + }; + defaultGateway6 = { + interface = "enp0s31f6"; + address = "fe80::1"; + }; }; }