diff options
author | aszlig <aszlig@nix.build> | 2019-10-08 22:34:06 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2019-10-08 22:34:06 +0200 |
commit | 77ecf74d6e63ac3fbd85c4e203e12d07bb23fbeb (patch) | |
tree | 60738ecf7bf9c2066cf5fb544ccbe1b9a865646f | |
parent | f0a0318b99232c25f9ef782c53db724f66127135 (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>
-rw-r--r-- | machines/aszlig/dnyarri.nix | 1 | ||||
-rw-r--r-- | machines/aszlig/managed/shakti.nix | 1 | ||||
-rw-r--r-- | machines/aszlig/managed/tyree.nix | 2 | ||||
-rw-r--r-- | machines/aszlig/tishtushi.nix | 1 | ||||
-rw-r--r-- | modules/user/aszlig/profiles/base.nix | 1 |
5 files changed, 5 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"; diff --git a/modules/user/aszlig/profiles/base.nix b/modules/user/aszlig/profiles/base.nix index f5594fa5..36f1c209 100644 --- a/modules/user/aszlig/profiles/base.nix +++ b/modules/user/aszlig/profiles/base.nix @@ -30,6 +30,7 @@ in { networking.wireless.enable = false; networking.firewall.enable = false; networking.useNetworkd = true; + networking.useDHCP = false; i18n.consoleKeyMap = "dvorak"; i18n.consoleFont = "lat9w-16"; |