diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-09-08 08:19:43 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-09-08 08:19:43 -0700 |
| commit | e72b2b9d08ac8b6575a2f6c3504b94dcf3a84b96 (patch) | |
| tree | 63fca796db04315a5248bb4ed5a614f181362c7f /machines/nixos/x86_64-linux/do-rproxy/default.nix | |
| parent | move droplet specific settings to its own module (diff) | |
| download | infra-e72b2b9d08ac8b6575a2f6c3504b94dcf3a84b96.tar.gz | |
Revert "move droplet specific settings to its own module"
This reverts commit 3b47113c28c5180d4d5d710e3c1fe74f95aa7226.
Diffstat (limited to 'machines/nixos/x86_64-linux/do-rproxy/default.nix')
| -rw-r--r-- | machines/nixos/x86_64-linux/do-rproxy/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/machines/nixos/x86_64-linux/do-rproxy/default.nix b/machines/nixos/x86_64-linux/do-rproxy/default.nix index 5152b57..e187bd2 100644 --- a/machines/nixos/x86_64-linux/do-rproxy/default.nix +++ b/machines/nixos/x86_64-linux/do-rproxy/default.nix @@ -1,8 +1,9 @@ { adminUser, config, - self, + lib, modulesPath, + self, ... }: { @@ -11,6 +12,7 @@ (modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/virtualisation/digital-ocean-config.nix") ./disks.nix + ./digitalocean.nix ./secrets.nix { home-manager.users.${adminUser.name} = { @@ -34,6 +36,9 @@ ./profiles/nginx.nix ]; + # do not use DHCP, as DigitalOcean provisions IPs using cloud-init + networking.useDHCP = lib.mkForce false; + networking.hostName = "do-rproxy"; boot.loader.grub = { @@ -60,7 +65,5 @@ networking.firewall.trustedInterfaces = [ "wg0" ]; networking.firewall.allowedUDPPorts = [ 51871 ]; - my.hardware.do-droplet.enable = true; - system.stateVersion = "25.05"; # Did you read the comment? } |
