about summary refs log tree commit diff
path: root/hosts/carmel
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/carmel')
-rw-r--r--hosts/carmel/default.nix25
1 files changed, 15 insertions, 10 deletions
diff --git a/hosts/carmel/default.nix b/hosts/carmel/default.nix
index 11105d3..dcc1c7a 100644
--- a/hosts/carmel/default.nix
+++ b/hosts/carmel/default.nix
@@ -14,19 +14,24 @@
 
   time.timeZone = "America/Los_Angeles";
 
-  networking.hostName = hostname;
-
-  networking.wireless.enable = false;
-  networking.interfaces.enp9s0.useDHCP = true;
-  networking.interfaces.wlp8s0.useDHCP = true;
-  # TODO: If set to false, systemd hangs on boot, unclear why.
-
   services.xserver.dpi = 168;
 
-  # Use systemd-resolved
-  services.resolved = {
+  # Use systemd-networkd for networking
+  systemd.network = {
     enable = true;
-    dnssec = "false";
+    networks = {
+      enp9s0 = {
+        matchConfig.Name = "enp9s0";
+        networkConfig = {
+          DHCP = "yes";
+        };
+        extraConfig = ''
+         [DHCPv4]
+         UseDNS=yes
+         UseDomains=yes
+        '';
+      };
+    };
   };
 
   # This value determines the NixOS release from which the default