Files
README.md

Infra Reference #

Host Overview #

Nix-darwin #

  • penrose: Mac Mini M1
  • sierpinski: MacBook Air M4

NixOS #

  • synchronicity-ii: Rented high-reliability/low-cost server
  • failure-island: Hyper-V VM on a high-performance x86 desktop
  • watchtower: ThinkCentre M75q Gen 2 Tiny; Home server

Offline #

Manual setup on blank system/migrations #

bloodletting: #

  • nh os switch --target-host root@bloodletting -H bloodletting - deploy config
  • passwd - set user passwords
  • rsync state:
    • /var/lib:
      • acme/.lego
      • fail2ban
      • mastodon
        • dump and import Postgres and Redis DBs
      • matterbridge
      • mc-e2e
      • mc-enigmatica-8
      • nyandroid
      • prometheus2
      • prosody

synchronicity-ii: #

  • nh os switch --target-host root@synchronicity-ii -H synchronicity-ii - deploy config
  • passwd - set user passwords
  • rsync state:
    • /var/lib:
      • acme/.lego
      • bin_rs
      • grafana
      • headscale
      • hedgedoc
      • prometheus2
    • /home/ftp

penrose/sierpinski: #

  • nh darwin switch - deploy config
  • age-plugin-se keygen | tee (tty) | tail -n1 >> ~/Library/Application\ Support/sops/age/keys.txt - generate a private key using the Apple Secure Enclave. Make sure to add it to .sops.yaml.
  • sops updatekeys - re-encrypt secrets after adding new keys.

Rsyncd Modules #

Modded minecraft instance rsync modules can be accessed through mc-[modpack]@bloodletting::mc-[modpack] with --rsh=ssh

Updating Mastodon #

cd common/pkgs/mastodon && ./update.sh --owner AgathaSorceress --rev <commit hash>

Last commit which includes BSPWM configs

Common Pitfalls #

  • Run sudo ssh failure-island if remote builds are failing. This is likely caused by a hidden "Host key verification failed" error.