From f319cc28b8f040e0f88b42aae167a94b943acddf Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 18 Aug 2023 19:53:12 -0400 Subject: hosts/p-body: move from digital ocean to hetzner --- hosts/p-body/default.nix | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'hosts/p-body/default.nix') diff --git a/hosts/p-body/default.nix b/hosts/p-body/default.nix index 6d3edaf..78e2227 100644 --- a/hosts/p-body/default.nix +++ b/hosts/p-body/default.nix @@ -1,12 +1,10 @@ { config, guzzle_api, - modulesPath, pkgs, ... }: { imports = [ - (modulesPath + "/virtualisation/digital-ocean-image.nix") ./buildMachines.nix ./grafana.nix ./loki.nix @@ -14,7 +12,14 @@ ./victoriametrics.nix ]; - boot.supportedFilesystems = ["btrfs"]; + boot = { + loader.grub = { + enable = true; + efiSupport = false; + }; + + supportedFilesystems = ["btrfs"]; + }; networking = { domain = "mydadleft.me"; @@ -30,6 +35,26 @@ }; }; + systemd.network = { + enable = true; + networks."10-wan" = { + matchConfig.name = "ens3"; + networkConfig.DHCP = "no"; + address = [ + "something/32" + ]; + routes = [ + {routeConfig = {Destination = "something";};} + { + routeConfig = { + Gateway = "something"; + GatewayOnLink = true; + }; + } + ]; + }; + }; + swapDevices = [ { device = "/swapfile"; -- cgit v1.2.3