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
This commit is contained in:
Pim Kunis 2023-12-17 16:22:22 +01:00
parent 04e9ce3abb
commit 721623c8fc
28 changed files with 402 additions and 80 deletions

View file

@ -0,0 +1,21 @@
#cloud-config
hostname: "${hostname}"
manage_etc_hosts: true
disable_root: false
chpasswd:
list: |
root:root
expire: False
ssh_pwauth: true
ssh_authorized_keys:
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOodpLr+FDRyKyHjucHizNLVFHZ5AQmE9GmxMnOsSoaw pimkunis@thinkpadpim"
- "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINUZp4BCxf7uLa1QWonx/Crf8tYZ5MKIZ+EuaBa82LrV user@user-laptop"
ssh_pwauth: false
# TODO: Do we need this?
runcmd:
- dhclient -r
- dhclient

View file

@ -0,0 +1,15 @@
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