Torjus Håkestad fca50562c3 terraform: fix cloud-init conditional type inconsistency
Fix OpenTofu error where static IP and DHCP branches had different object
structures in the subnets array. Move conditional to network_config level
so both branches return complete, consistent yamlencode() results.

Error was: "The true and false result expressions must have consistent types"

Solution: Make network_config itself conditional rather than the subnets
array, ensuring both branches return the same type (string from yamlencode).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-01 17:41:04 +01:00
2024-12-05 18:35:06 +01:00
2026-01-18 03:58:55 +01:00
2025-12-06 11:37:11 +01:00
2025-04-01 22:23:59 +02:00
2026-01-18 03:58:55 +01:00
2026-01-29 00:01:06 +00:00
2024-10-07 23:40:28 +02:00
2025-01-26 00:55:15 +01:00

nixos-servers

Nixos configs for my homelab servers.

Configurations in use

  • ha1
  • ns1
  • ns2
  • template1
Description
No description provided
Readme 2.2 MiB
Languages
Nix 56.7%
Python 22.8%
HCL 12.6%
Smarty 4%
Shell 3.2%
Other 0.7%