diff options
| author | seth <[email protected]> | 2023-08-18 19:53:12 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-08-19 04:33:09 -0400 |
| commit | f319cc28b8f040e0f88b42aae167a94b943acddf (patch) | |
| tree | b26be0370320dddae342fa7a81e401d47f404e1f /hosts/p-body | |
| parent | ee7a8059e51773a312beeeee29f66ad65cd3af03 (diff) | |
hosts/p-body: move from digital ocean to hetzner
Diffstat (limited to 'hosts/p-body')
| -rw-r--r-- | hosts/p-body/default.nix | 31 |
1 files changed, 28 insertions, 3 deletions
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"; |
