diff options
author | sils <sils@sils.li> | 2023-04-11 10:55:18 +0200 |
---|---|---|
committer | sils <sils@sils.li> | 2023-04-11 10:55:18 +0200 |
commit | 5a6dd9797b67c08d58236956fbb43b7fe57f5730 (patch) | |
tree | 27418564bc75d03c66c0e5cf5209f0b66e625998 /hosts/server1/networking.nix | |
parent | Fix(services): Remove Minecraft (diff) | |
parent | Chore(flake): Update (diff) | |
download | nixos-server-5a6dd9797b67c08d58236956fbb43b7fe57f5730.tar.gz nixos-server-5a6dd9797b67c08d58236956fbb43b7fe57f5730.zip |
Merge pull request 'server1_develop' (#22) from server1_develop into server1
Reviewed-on: https://git.sils.li/vhack.eu/nixos-server/pulls/22 Reviewed-by: sils <sils@sils.li>
Diffstat (limited to 'hosts/server1/networking.nix')
-rw-r--r-- | hosts/server1/networking.nix | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/hosts/server1/networking.nix b/hosts/server1/networking.nix index 26d6719..cd0484f 100644 --- a/hosts/server1/networking.nix +++ b/hosts/server1/networking.nix @@ -5,8 +5,14 @@ nameservers = [ "8.8.8.8" ]; - defaultGateway = "89.58.56.1"; - defaultGateway6 = "fe80::1"; + defaultGateway = { + address = "89.58.56.1"; + interface = "eth0"; + }; + defaultGateway6 = { + address = "fe80::1"; + interface = "eth0"; + }; dhcpcd.enable = false; usePredictableInterfaceNames = lib.mkForce false; interfaces = { @@ -19,11 +25,7 @@ ]; ipv6.addresses = [ { - address = "2a03:4000:6a:3f3:6422:6dff:fe82:939b"; - prefixLength = 64; - } - { - address = "fe80::6422:6dff:fe82:939b"; + address = "2a03:4000:6a:3f3::1"; prefixLength = 64; } ]; @@ -44,6 +46,5 @@ }; services.udev.extraRules = '' ATTR{address}=="66:22:6d:82:93:9b", NAME="eth0" - ''; } |