about summary refs log tree commit diff
path: root/hosts/commons/network.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/commons/network.nix')
-rw-r--r--hosts/commons/network.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/hosts/commons/network.nix b/hosts/commons/network.nix
new file mode 100644
index 0000000..c44f7a4
--- /dev/null
+++ b/hosts/commons/network.nix
@@ -0,0 +1,19 @@
+{ config, pkgs, hostname, ... }:
+
+{
+  networking = {
+    hostName = hostname;
+    useNetworkd = true;
+    wireless.enable = false;
+    useDHCP = false;
+  };
+
+  services.nscd.enable = false;
+  system.nssModules = lib.mkForce [ ];
+
+  # Use systemd-resolved
+  services.resolved = {
+    enable = true;
+    dnssec = "false";
+  };
+}