this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(infra): correct NixOS variable for Hetzner VM

Khue Doan 67b1325b 43591cec

+11 -5
+2 -2
infra/.modules/hetzner-nixos/main.tf
··· 24 24 for_each = hcloud_server.nodes 25 25 26 26 source = "github.com/nix-community/nixos-anywhere//terraform/all-in-one" 27 - nixos_system_attr = "${var.flake}#nixosConfigurations.master.config.system.build.toplevel" 28 - nixos_partitioner_attr = "${var.flake}#nixosConfigurations.master.config.system.build.diskoScript" 27 + nixos_system_attr = "${var.nixos.flake}#nixosConfigurations.${var.nixos.host}.config.system.build.toplevel" 28 + nixos_partitioner_attr = "${var.nixos.flake}#nixosConfigurations.${var.nixos.host}.config.system.build.diskoScript" 29 29 target_host = each.value.ipv6_address 30 30 instance_id = each.value.name 31 31 build_on_remote = true
+5 -2
infra/.modules/hetzner-nixos/variables.tf
··· 4 4 })) 5 5 } 6 6 7 - variable "flake" { 8 - 7 + variable "nixos" { 8 + type = object({ 9 + flake = string 10 + host = string 11 + }) 9 12 }
infra/production/hetzner/helsinki/compute/.terraform.lock.hcl infra/production/hetzner/compute/.terraform.lock.hcl
+4 -1
infra/production/hetzner/helsinki/compute/terragrunt.hcl infra/production/hetzner/compute/terragrunt.hcl
··· 17 17 # location = "fsn1" 18 18 # } 19 19 } 20 - flake = get_terragrunt_dir() 20 + nixos = { 21 + flake = "${find_in_parent_folders(".modules")}/nixos" 22 + host = "k3s" 23 + } 21 24 }