Commit graph

598 commits

Author SHA1 Message Date
oddlama
c789e2de36
feat(wireguard): add ability to automatically assign addresses 2023-05-29 00:07:56 +02:00
oddlama
4e8103af47
wip: prepare for autogenerated wireguard ips; prepare for sentinel server 2023-05-28 01:05:23 +02:00
oddlama
05813fafb4
chore: refactor assignIps as cidr library function that returns ips 2023-05-28 00:17:55 +02:00
oddlama
1a0225336f
feat: add assignIps function that generates semi-stable ips for a list of
hostnames by (ab-)using hashes with linear probing. Useful for automatic
ip assignments in wireguard.
2023-05-27 23:28:50 +02:00
oddlama
21e88619b7
fix: need attrset in config.lib, fix typo in nftables rule 2023-05-27 02:28:20 +02:00
oddlama
41df399bb6
feat: automatically generate allowedTCPPorts for mdns enabled
interfaces; simplify nftables rules by adding a general untrusted zone
2023-05-27 01:59:28 +02:00
oddlama
e37601b486
feat: switch to DHCP based networking for microvms using mDNS for resolution 2023-05-26 01:21:26 +02:00
oddlama
0e3d881887
feat: experiment with kanidm and acme dns-01. add common conditional locations to impermanence 2023-05-25 01:57:16 +02:00
oddlama
668f9fdaf4
fix: it's beneficial to use commonImports instead of just defining it :) 2023-05-24 00:21:32 +02:00
oddlama
cc2397669d
feat: allow microvms to override configPath 2023-05-23 01:09:37 +02:00
oddlama
f65b217a92
feat: change passwords and hide new hashes 2023-05-22 23:53:45 +02:00
oddlama
aaa1d88d46
docs: update README 2023-05-21 23:58:25 +02:00
oddlama
ec3b34a368
fix: mount vm datasets under /vms to avoid accidental shadowing on creation 2023-05-21 23:39:53 +02:00
oddlama
bd8a14deb0
feat: ensure vms come online after deployment even with missing wireguard keys 2023-05-21 23:26:51 +02:00
oddlama
f3ed1248af
feat: properly ensure vm zfs dataset exists 2023-05-21 22:57:40 +02:00
oddlama
a0d22b8be1
feat: allow specifying host pubkey as string 2023-05-21 16:01:49 +02:00
oddlama
cbcd3c943b
refactor: centralize definition of MicroVM node names 2023-05-21 15:08:27 +02:00
oddlama
d7f69c5baa
refactor: properly modularize repo secret management 2023-05-21 14:40:42 +02:00
oddlama
88f1ac54b8
fix: remove faulty agenix directory early and only if necessary
chore: change default microvm naming scheme to <host>-<name>
2023-05-21 01:29:54 +02:00
oddlama
43b2bd1982
fix: route the whole wireguard network when we are a client. 2023-05-20 20:58:37 +02:00
oddlama
f95bc0eb30
feat: allow reservation of addresses in wireguard network 2023-05-20 20:47:09 +02:00
oddlama
0221a24225
fix: ajust firewall rule names and wireguard link name to match 2023-05-20 19:35:17 +02:00
oddlama
3862bd6b14
feat: remove the need to specify cidrs in wireguard addresses and
properly derive allowed ips
2023-05-20 18:24:30 +02:00
oddlama
4057ee9051
feat: implement cidr coersion to automatically determine wireguard network size from participants 2023-05-20 15:57:19 +02:00
oddlama
6d8f8ab2e3
feat: add static microvm networking; allow cidrv4 and cidrv6 to be
specified explicitly on wireguard networks to allow for
  simple access by other modules.
2023-05-20 00:55:48 +02:00
oddlama
78cdcd3c69
feat: refactor and integrate wireguard module into microvm module 2023-05-19 21:33:27 +02:00
oddlama
e5f3ffd288
fix: reference extra-builtins.nix with access to relative files 2023-05-18 11:48:09 +02:00
oddlama
02f27c85f4
chore: enforce disko use for microvm hosts 2023-05-16 17:54:43 +02:00
oddlama
c03d1a1c8f
chore: fix toplevel microvm attrset merging 2023-05-14 01:48:13 +02:00
oddlama
70f7ef3023
feat: add automatic zfs persistent dataset management to microvms 2023-05-14 00:27:29 +02:00
oddlama
2b4449569f
chore: add writable store overlay in microvms 2023-05-12 01:45:00 +02:00
oddlama
a543394fa8
feat: enable ipv6 RA 2023-05-11 18:18:52 +02:00
oddlama
cdd35390fb
chore: switch to zfs on luks 2023-05-11 12:54:38 +02:00
oddlama
14ef8ef877
feat: modularize link renaming 2023-05-11 01:28:31 +02:00
oddlama
e8f50ab906
fix: prevent path -> string conversion in hostPubkey definition, which
caused repeated unnecessary rekeying
2023-05-10 18:24:24 +02:00
oddlama
24655ece76
feat: add macvtap networking to microvms 2023-05-10 02:07:09 +02:00
oddlama
8cb904c44c
chore: update hostapd module from PR 2023-05-09 01:32:20 +02:00
oddlama
e2ba02234a
feat: restructure user common files, allow selecting "minimal" set of options for vms 2023-05-08 18:03:29 +02:00
oddlama
d842d25eb9
feat: add microvm module to simplify setup 2023-05-08 17:13:40 +02:00
oddlama
72a34cac01
fix: fix parenthesis precedence 2023-05-08 15:03:41 +02:00
oddlama
7ecbb69ff8
chore: remove last uses of with lib 2023-05-08 14:49:28 +02:00
oddlama
1b9d9fc58a
feat: add declarative microvms 2023-05-08 14:48:59 +02:00
oddlama
1a7472207a
chore: update ward hostkey after resetup 2023-05-01 15:32:14 +02:00
oddlama
5d8a60b4d8
fix: properly inherit stateVersion on home-manager configs 2023-05-01 15:27:56 +02:00
oddlama
de19b23d3d
refactor: split hardware related and system related common configuration 2023-05-01 15:27:28 +02:00
oddlama
f55c83c1b8
fix(impermanence): give agenix early access to ssh keys 2023-05-01 15:00:02 +02:00
oddlama
e2e2c2a757
chore: auto optimize biweekly; delete generations older than 90d; use single-definition for stateVersion 2023-05-01 14:42:36 +02:00
oddlama
4cee692eff
feat: enable impermanence 2023-05-01 11:49:37 +02:00
oddlama
30cfdaf860
refactor: remove meta.nix in favor of direct declaration in flake.nix 2023-04-30 14:06:25 +02:00
oddlama
08290e5052
feat: move common disko functionality into lib 2023-04-30 13:41:09 +02:00