summary refs log tree commit diff
path: root/machines/corsac/devices.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-10-27 22:05:25 +0100
committerMel <einebeere@gmail.com>2024-10-27 22:05:25 +0100
commit2fc26761a1e93e6212845ebd005eab71da704d6e (patch)
tree2e2f5666ba315c9d3ba038e7e0617171268b8262 /machines/corsac/devices.nix
parent1e0eca0bcbfc338a585842c65c4b48d62d79728d (diff)
downloadnetwork-2fc26761a1e93e6212845ebd005eab71da704d6e.tar.zst
network-2fc26761a1e93e6212845ebd005eab71da704d6e.zip
Add global dns-blocking dnsmasq service
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'machines/corsac/devices.nix')
-rw-r--r--machines/corsac/devices.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/machines/corsac/devices.nix b/machines/corsac/devices.nix
index 71ef8d2..0c4ddd7 100644
--- a/machines/corsac/devices.nix
+++ b/machines/corsac/devices.nix
@@ -11,6 +11,15 @@
     initrd.systemd.enable = true; 
   };
 
-  # internet
-  networking.networkmanager.enable = true;
+  networking = {
+    useDHCP = false;
+    # todo: configure properly
+    firewall.enable = false;
+  };
+
+  systemd.network.enable = true;
+  systemd.network.networks."20-wired" = {
+    name = "enp1s0";
+    DHCP = "yes";
+  };
 }