nixcfg/systems/x86_64-linux/mx
Harald Hoyer 67b7c3a9fd feat(headscale): add ACL policy, isolate mx, make mx an exit node
Introduces a headscale ACL policy (file-mode) plus matching client config:

- New systems/x86_64-linux/attic/headscale-policy.hujson:
  * tag:llm restricts a node to talking only to halo:8000
  * all other harald@ nodes have full mesh access to each other
  * harald@ nodes can route internet traffic via approved exit nodes
  * autoApprovers.exitNode = [tag:llm] auto-approves the exit route
    advertised by any tag:llm node (currently mx)

- attic headscale.nix: wire policy.mode = "file" / policy.path to
  the .hujson above.

- mx default.nix: enable useRoutingFeatures = "server" (needed for IP
  forwarding) and add extraSetFlags = ["--advertise-exit-node"] so the
  flag is reapplied on every activation, not just initial login.

Operational steps after deploy:
  headscale nodes tag -i 10 -t tag:llm
2026-05-13 09:06:40 +02:00
..
nextcloud-claude-bot nix fmt 2026-02-24 13:25:42 +01:00
acme.nix nix fmt 2026-02-24 13:25:42 +01:00
backup.nix nix fmt 2024-11-19 10:31:29 +01:00
coturn.nix nix fmt 2026-02-24 13:25:42 +01:00
default.nix feat(headscale): add ACL policy, isolate mx, make mx an exit node 2026-05-13 09:06:40 +02:00
disk-check.nix refactor(mx): extract disk check services into disk-check.nix 2026-04-20 10:28:27 +02:00
forgejo.nix feat(sops): trigger service restarts on secret rotation 2026-05-03 15:23:40 +02:00
goaccess.nix A new start 2024-03-21 15:00:36 +01:00
hardware-configuration.nix nix fmt 2024-11-19 10:31:29 +01:00
kicker.nix nix fmt 2024-11-19 10:31:29 +01:00
mailserver.nix fix(mx): update stale comment in Roundcube config to reflect SSL/TLS 2026-03-24 15:08:55 +01:00
network.nix nix fmt 2024-11-19 10:31:29 +01:00
nextcloud.nix feat(mx): nextcloud33 2026-03-24 12:00:38 +01:00
nginx.nix chore: nix fmt 2026-05-03 14:57:49 +02:00
ntfy.nix feat: extend systemd-email-notify module with optional ntfy support 2026-03-24 16:38:14 +01:00
postgresql.nix feat(mx): enable daily PostgreSQL backup via pg_dumpall 2026-03-24 16:13:10 +01:00
rspamd.nix nix fmt 2024-11-19 10:31:29 +01:00
rustdesk.nix refactor: improve formatting and update dependencies 2025-02-25 08:56:02 +01:00
server-raid.nix nix fmt 2024-11-19 10:31:29 +01:00
users.nix A new start 2024-03-21 15:00:36 +01:00