1

Updated networking config

This commit is contained in:
2023-09-10 12:30:26 +02:00
parent 38c53ebc21
commit d8c3377592
5 changed files with 58 additions and 7 deletions

View File

@ -46,11 +46,11 @@ with mylib.networking; {
};
networking.hosts = {
"192.168.86.42" = ["nixinator"];
"192.168.86.69" = ["proxmox"];
"192.168.86.100" = ["truenas"];
"192.168.86.102" = ["opnsense"];
"192.168.86.105" = ["servenix"];
"192.168.86.50" = ["nixinator"];
"192.168.86.4" = ["proxmox"];
"192.168.86.20" = ["truenas"];
"192.168.86.5" = ["opnsense"];
"192.168.86.25" = ["servenix"];
};
# Enable flakes

View File

@ -60,7 +60,7 @@ in {
networking = {
# Gets inherited from flake in nixos mylib and passed through the module option
hostName = cfg.hostname; # Define your hostname.
enableIPv6 = true;
enableIPv6 = false;
# Disable a lot of stuff not needed for systemd-networkd
networkmanager.enable = false;

View File

@ -29,6 +29,17 @@
};
systemd-networkd = {
networks = {
# This should override the default network 50-ether
"10-ether-2_5G" = mylib.networking.mkStaticSystemdNetwork {
interface = "enp10s0";
ip = ["192.168.86.50/24"];
router = ["192.168.86.5"];
nameserver = ["192.168.86.25"];
};
# "10-ether-1G" = mylib.networking.mkStaticSystemdNetwork {...};
};
wireguard-tunnels = {
wg0-de-115 = (
mylib.networking.mkWireguardService