diff options
| author | Mel <einebeere@gmail.com> | 2024-12-29 20:26:12 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-12-29 20:38:23 +0100 |
| commit | f7d86625faff70ffc5447cc8f4fd44b987b8c197 (patch) | |
| tree | cbc4d71f2e3112819be85bec8c86dd506ac4f491 /configuration/devices.nix | |
| parent | f4368190f65902ef4e539774623afa25b2831b87 (diff) | |
| download | specimen-f7d86625faff70ffc5447cc8f4fd44b987b8c197.tar.zst specimen-f7d86625faff70ffc5447cc8f4fd44b987b8c197.zip | |
Generated system configuration from Hetzner server
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'configuration/devices.nix')
| -rw-r--r-- | configuration/devices.nix | 25 |
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"; } ]; + }; +} |
