about summary refs log tree commit diff
path: root/hosts/carmel/networking.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/carmel/networking.nix')
-rw-r--r--hosts/carmel/networking.nix20
1 files changed, 19 insertions, 1 deletions
diff --git a/hosts/carmel/networking.nix b/hosts/carmel/networking.nix
index f4a1c6f..8ad9d3e 100644
--- a/hosts/carmel/networking.nix
+++ b/hosts/carmel/networking.nix
@@ -1,4 +1,6 @@
-{ ... }: {
+{ lib, ... }:
+
+{
   # Use systemd-networkd for networking
   systemd.network = {
     enable = true;
@@ -14,4 +16,20 @@
       };
     };
   };
+
+  services.nscd.enable = false;
+  system.nssModules = lib.mkForce [ ];
+
+  # Use systemd-resolved
+  services.resolved = {
+    enable = true;
+    dnssec = "false";
+  };
+
+  networking = {
+    hostName = "carmel";
+    useNetworkd = true;
+    useDHCP = false;
+    private-wireguard.enable = true;
+  };
 }