summary refs log tree commit diff
path: root/machines
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
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')
-rw-r--r--machines/corsac/default.nix2
-rw-r--r--machines/corsac/devices.nix13
2 files changed, 13 insertions, 2 deletions
diff --git a/machines/corsac/default.nix b/machines/corsac/default.nix
index b118d10..956f7a7 100644
--- a/machines/corsac/default.nix
+++ b/machines/corsac/default.nix
@@ -6,6 +6,8 @@
 
     ./hardware.nix
     ./devices.nix
+  
+    ../../modules/dns.nix
   ];
 
   system.stateVersion = "24.05";
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";
+  };
 }