about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authordevhell <devhell@mailfresser.de>2019-10-08 14:00:52 +0100
committerdevhell <devhell@mailfresser.de>2019-10-08 14:00:52 +0100
commitbc1c8b7b68f5fdaae63a80a69b0973bdcb82288b (patch)
tree1f219713133970af14ce040234b8bc89d209aa89 /modules
parent1dec2d5545a98bb25034a1a868b7c4062cd834a8 (diff)
profiles/base: Fix networking.useDHCP clash
This addresses a new assertion to the way NixOS handles networks with
networkd [1].

As a result this disables `networking.useDHCP` globally on all my
machines. Explicit interface configuration, as requested by [1] will be
handled in separate commits due to separate machines, not all of which I
have access to right now.

[1] https://github.com/NixOS/nixpkgs/pull/69302
Diffstat (limited to 'modules')
-rw-r--r--modules/user/devhell/profiles/base.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/user/devhell/profiles/base.nix b/modules/user/devhell/profiles/base.nix
index a423b795..6a817d2d 100644
--- a/modules/user/devhell/profiles/base.nix
+++ b/modules/user/devhell/profiles/base.nix
@@ -44,7 +44,10 @@ in {
       };
     };
 
-    networking.firewall.enable = false;
+    networking = {
+      firewall.enable = false;
+      useDHCP = false;
+    };
 
     users.users.dev = {
       isNormalUser = true;