about summary refs log tree commit diff
path: root/configuration/devices.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configuration/devices.nix')
-rw-r--r--configuration/devices.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/configuration/devices.nix b/configuration/devices.nix
new file mode 100644
index 0000000..d643f9c
--- /dev/null
+++ b/configuration/devices.nix
@@ -0,0 +1,25 @@
+{ ... }:
+
+{
+  boot.loader = {
+    systemd-boot.enable = true;
+    efi.canTouchEfiVariables = true;
+  };
+
+  networking = {
+    useDHCP = false;
+    # these are Hetzner's DNS servers.
+    nameservers = [
+      "2a01:4ff:ff00::add:1"
+      "2a01:4ff:ff00::add:2"
+    ];
+  };
+
+  systemd.network.enable = true;
+  systemd.network.networks."10-wan" = {
+    name = "enp1s0";
+    DHCP = "no";
+    address = [ "2a01:4f8:c2c:cd93::1" ];
+    routes = [ { Gateway = "fe80::1"; } ];
+  };
+}