From 453ad130188eed89ac8657d382f8c84f517692c7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 16 Jun 2015 21:20:42 +0200 Subject: "fixed" network setup --- bragi.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/bragi.nix b/bragi.nix index 8e7c3e57..af4cee30 100644 --- a/bragi.nix +++ b/bragi.nix @@ -56,6 +56,7 @@ nfs-utils jack2 trivmix + zsh ]; # List services that you want to enable: @@ -159,7 +160,17 @@ ''; networking.interfaces = { - "wired" = { + "enp1s0" = { + useDHCP = false; + ipAddress = "10.141.4.1"; + prefixLength = 24; + }; + "enp2s0" = { + useDHCP = false; + ipAddress = "10.141.4.1"; + prefixLength = 24; + }; + "enp3s0" = { useDHCP = false; ipAddress = "10.141.4.1"; prefixLength = 24; @@ -180,6 +191,9 @@ internalIPs = [ "10.141.4.0/24" ]; internalInterfaces = [ "wired" + "enp1s0" + "enp2s0" + "enp3s0" ]; }; @@ -194,7 +208,7 @@ services.dhcpd = { enable = true; - interfaces = "wired"; + interfaces = "wired,enp1s0,enp2s0,enp3s0"; extraConfig = '' option subnet-mask 255.255.255.0; option broadcast-address 10.141.1.1; -- cgit v1.2.3