This repository has been archived on 2025-02-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
nixos-servers/legacy/terraform_modules/debian/files/network_config.cfg.tftpl
Pim Kunis 721623c8fc update to nixos 23.11
enable static IP for terraformed VMs
restructure legacy code
move hermes code to this repo
don't use data disk for hermes leases
2023-12-17 16:22:22 +01:00

15 lines
230 B
Text

version: 2
ethernets:
ens:
match:
name: ens*
%{ if static_ip != null }
dhcp4: false
addresses:
- "${static_ip}"
%{ else }
dhcp4: true
%{ endif}
routes:
- to: 0.0.0.0/0
via: 192.168.30.1