about summary refs log tree commit diff
path: root/machines/aszlig
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2019-10-08 22:34:06 +0200
committeraszlig <aszlig@nix.build>2019-10-08 22:34:06 +0200
commit77ecf74d6e63ac3fbd85c4e203e12d07bb23fbeb (patch)
tree60738ecf7bf9c2066cf5fb544ccbe1b9a865646f /machines/aszlig
parentf0a0318b99232c25f9ef782c53db724f66127135 (diff)
machines/aszlig: Explicitly set useDHCP
The usage of DHCP is no longer global since a while[1] and we now have
to explicitly enable it for the interfaces in question.

This actually is a good thing and makes it far less problematic if we
use tunnel interfaces and other more complicated networking
configuration.

I added the definitions for all machines where I actually know which
interfaces are in use and disabled useNetworkd for shakti, because I
don't know the interface names for that machine and the machine
currently isn't in use anyway, so we can add it later if needed.

[1]: https://github.com/NixOS/nixpkgs/pull/69302

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'machines/aszlig')
-rw-r--r--machines/aszlig/dnyarri.nix1
-rw-r--r--machines/aszlig/managed/shakti.nix1
-rw-r--r--machines/aszlig/managed/tyree.nix2
-rw-r--r--machines/aszlig/tishtushi.nix1
4 files changed, 4 insertions, 1 deletions
diff --git a/machines/aszlig/dnyarri.nix b/machines/aszlig/dnyarri.nix
index 482395ee..be7ecaba 100644
--- a/machines/aszlig/dnyarri.nix
+++ b/machines/aszlig/dnyarri.nix
@@ -76,6 +76,7 @@ in {
   hardware.enableRedistributableFirmware = true;
 
   networking.hostName = "dnyarri";
+  networking.interfaces.eno0.useDHCP = true;
 
   fileSystems = {
     "/boot" = {
diff --git a/machines/aszlig/managed/shakti.nix b/machines/aszlig/managed/shakti.nix
index 449bbe3c..330d644c 100644
--- a/machines/aszlig/managed/shakti.nix
+++ b/machines/aszlig/managed/shakti.nix
@@ -58,7 +58,6 @@
   };
 
   networking.hostName = "shakti";
-  networking.useNetworkd = true;
 
   hardware.cpu.amd.updateMicrocode = true;
 
diff --git a/machines/aszlig/managed/tyree.nix b/machines/aszlig/managed/tyree.nix
index 3768f11c..9296d773 100644
--- a/machines/aszlig/managed/tyree.nix
+++ b/machines/aszlig/managed/tyree.nix
@@ -48,6 +48,8 @@
 
   networking.hostName = "tyree";
   networking.useNetworkd = true;
+  networking.useDHCP = false;
+  networking.interfaces.wlan0.useDHCP = true;
 
   hardware.cpu.intel.updateMicrocode = true;
 
diff --git a/machines/aszlig/tishtushi.nix b/machines/aszlig/tishtushi.nix
index c4aabe95..f38f894a 100644
--- a/machines/aszlig/tishtushi.nix
+++ b/machines/aszlig/tishtushi.nix
@@ -33,6 +33,7 @@
 
   networking.hostName = "tishtushi";
   networking.wireless.enable = lib.mkForce true;
+  networking.interfaces.wlp2s0.useDHCP = true;
 
   fileSystems."/boot" = {
     device = "/dev/disk/by-uuid/763a7117-3dbf-4e80-9e63-c7039477ef3d";