From 8d7bc50108880e40d6fef2c800939b0ecd0b1284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 7 Feb 2026 12:58:24 +0100 Subject: [PATCH] hosts: remove testvm01 Test host no longer needed. Co-Authored-By: Claude Opus 4.5 --- flake.nix | 9 ----- hosts/testvm01/configuration.nix | 69 -------------------------------- hosts/testvm01/default.nix | 5 --- terraform/vms.tf | 7 ---- 4 files changed, 90 deletions(-) delete mode 100644 hosts/testvm01/configuration.nix delete mode 100644 hosts/testvm01/default.nix diff --git a/flake.nix b/flake.nix index ba1b16e..91e32b9 100644 --- a/flake.nix +++ b/flake.nix @@ -186,15 +186,6 @@ ./hosts/nats1 ]; }; - testvm01 = nixpkgs.lib.nixosSystem { - inherit system; - specialArgs = { - inherit inputs self sops-nix; - }; - modules = commonModules ++ [ - ./hosts/testvm01 - ]; - }; vault01 = nixpkgs.lib.nixosSystem { inherit system; specialArgs = { diff --git a/hosts/testvm01/configuration.nix b/hosts/testvm01/configuration.nix deleted file mode 100644 index 95f9233..0000000 --- a/hosts/testvm01/configuration.nix +++ /dev/null @@ -1,69 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: - -{ - imports = [ - ../template2/hardware-configuration.nix - - ../../system - ../../common/vm - ]; - - # Test VM - exclude from DNS zone generation - homelab.dns.enable = false; - - homelab.host = { - tier = "test"; - priority = "low"; - }; - - nixpkgs.config.allowUnfree = true; - boot.loader.grub.enable = true; - boot.loader.grub.device = "/dev/vda"; - - networking.hostName = "testvm01"; - networking.domain = "home.2rjus.net"; - networking.useNetworkd = true; - networking.useDHCP = false; - services.resolved.enable = false; - networking.nameservers = [ - "10.69.13.5" - "10.69.13.6" - ]; - - systemd.network.enable = true; - systemd.network.networks."ens18" = { - matchConfig.Name = "ens18"; - address = [ - "10.69.13.101/24" - ]; - routes = [ - { Gateway = "10.69.13.1"; } - ]; - linkConfig.RequiredForOnline = "routable"; - }; - time.timeZone = "Europe/Oslo"; - - nix.settings.experimental-features = [ - "nix-command" - "flakes" - ]; - nix.settings.tarball-ttl = 0; - environment.systemPackages = with pkgs; [ - vim - wget - git - ]; - - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - networking.firewall.enable = false; - - system.stateVersion = "25.11"; # Did you read the comment? -} \ No newline at end of file diff --git a/hosts/testvm01/default.nix b/hosts/testvm01/default.nix deleted file mode 100644 index 57ed4b4..0000000 --- a/hosts/testvm01/default.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ ... }: { - imports = [ - ./configuration.nix - ]; -} \ No newline at end of file diff --git a/terraform/vms.tf b/terraform/vms.tf index 7fb4880..b7c6c5d 100644 --- a/terraform/vms.tf +++ b/terraform/vms.tf @@ -31,13 +31,6 @@ locals { # Example Minimal VM using all defaults (uncomment to deploy): # "minimal-vm" = {} # "bootstrap-verify-test" = {} - "testvm01" = { - ip = "10.69.13.101/24" - cpu_cores = 2 - memory = 2048 - disk_size = "20G" - flake_branch = "pipeline-testing-improvements" - } "vault01" = { ip = "10.69.13.19/24" cpu_cores = 2