From f7d86625faff70ffc5447cc8f4fd44b987b8c197 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 29 Dec 2024 20:26:12 +0100 Subject: Generated system configuration from Hetzner server Signed-off-by: Mel --- configuration/devices.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 configuration/devices.nix (limited to 'configuration/devices.nix') 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"; } ]; + }; +} -- cgit 1.4.1