diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-16 21:20:42 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-06-16 21:20:42 +0200 |
| commit | 453ad130188eed89ac8657d382f8c84f517692c7 (patch) | |
| tree | 263924cae8310d4fb4b29991318a7e3aa42e4dd9 | |
| parent | a39e417c587ac1fce8c9095b0f64c43d790f087f (diff) | |
| download | nixos-453ad130188eed89ac8657d382f8c84f517692c7.tar nixos-453ad130188eed89ac8657d382f8c84f517692c7.tar.gz nixos-453ad130188eed89ac8657d382f8c84f517692c7.tar.bz2 nixos-453ad130188eed89ac8657d382f8c84f517692c7.tar.xz nixos-453ad130188eed89ac8657d382f8c84f517692c7.zip | |
"fixed" network setup
| -rw-r--r-- | bragi.nix | 18 |
1 files changed, 16 insertions, 2 deletions
| @@ -56,6 +56,7 @@ | |||
| 56 | nfs-utils | 56 | nfs-utils |
| 57 | jack2 | 57 | jack2 |
| 58 | trivmix | 58 | trivmix |
| 59 | zsh | ||
| 59 | ]; | 60 | ]; |
| 60 | 61 | ||
| 61 | # List services that you want to enable: | 62 | # List services that you want to enable: |
| @@ -159,7 +160,17 @@ | |||
| 159 | ''; | 160 | ''; |
| 160 | 161 | ||
| 161 | networking.interfaces = { | 162 | networking.interfaces = { |
| 162 | "wired" = { | 163 | "enp1s0" = { |
| 164 | useDHCP = false; | ||
| 165 | ipAddress = "10.141.4.1"; | ||
| 166 | prefixLength = 24; | ||
| 167 | }; | ||
| 168 | "enp2s0" = { | ||
| 169 | useDHCP = false; | ||
| 170 | ipAddress = "10.141.4.1"; | ||
| 171 | prefixLength = 24; | ||
| 172 | }; | ||
| 173 | "enp3s0" = { | ||
| 163 | useDHCP = false; | 174 | useDHCP = false; |
| 164 | ipAddress = "10.141.4.1"; | 175 | ipAddress = "10.141.4.1"; |
| 165 | prefixLength = 24; | 176 | prefixLength = 24; |
| @@ -180,6 +191,9 @@ | |||
| 180 | internalIPs = [ "10.141.4.0/24" | 191 | internalIPs = [ "10.141.4.0/24" |
| 181 | ]; | 192 | ]; |
| 182 | internalInterfaces = [ "wired" | 193 | internalInterfaces = [ "wired" |
| 194 | "enp1s0" | ||
| 195 | "enp2s0" | ||
| 196 | "enp3s0" | ||
| 183 | ]; | 197 | ]; |
| 184 | }; | 198 | }; |
| 185 | 199 | ||
| @@ -194,7 +208,7 @@ | |||
| 194 | 208 | ||
| 195 | services.dhcpd = { | 209 | services.dhcpd = { |
| 196 | enable = true; | 210 | enable = true; |
| 197 | interfaces = "wired"; | 211 | interfaces = "wired,enp1s0,enp2s0,enp3s0"; |
| 198 | extraConfig = '' | 212 | extraConfig = '' |
| 199 | option subnet-mask 255.255.255.0; | 213 | option subnet-mask 255.255.255.0; |
| 200 | option broadcast-address 10.141.1.1; | 214 | option broadcast-address 10.141.1.1; |
