This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / machines / neoprism / config.nix
6.4 kB 182 lines
1{ 2 lib, 3 ... 4}: 5 6{ 7 imports = [ 8 ../../configs 9 ../../configs/ssh-redirect.nix 10 ../../configs/retiolum.nix 11 ../../configs/mailserver.nix 12 ../../configs/snappymail.nix 13 ../../configs/gsm-wiki.nix 14 ../../configs/pair-programming.nix 15 ../../configs/nginx.nix 16 ../../configs/services/matrix 17 ../../configs/services/matrix/proxy.nix 18 ../../configs/services/matrix/cinny.nix 19 ../../configs/services/matrix/bridges/mautrix-whatsapp.nix 20 ../../configs/services/matrix/bridges/mautrix-signal.nix 21 ../../configs/services/matrix/bridges/heisenbridge.nix 22 ../../configs/services/matrix/bridges/mautrix-telegram.nix 23 ../../configs/services/matrix/bridges/mautrix-discord.nix 24 ../../configs/services/matrix/bridges/matrix-zulip-bridge.nix 25 26 ../../configs/services/pad 27 28 ../../configs/hass/proxy.nix 29 ../../configs/hermes-proxy.nix 30 ../../configs/crit-proxy.nix 31 32 # sync-containers 33 ../../configs/consul.nix 34 ../../configs/services/flix/container-host.nix 35 ../../configs/services/radio/container-host.nix 36 ../../configs/orange-host.nix 37 ../../configs/hotdog-host.nix 38 39 # other containers 40 ../../configs/riot.nix 41 42 # proxying of services 43 ../../configs/services/radio/proxy.nix 44 ../../configs/services/flix/proxy.nix 45 ../../configs/services/coms/jitsi.nix 46 47 # dns 48 ../../configs/dns/knot.nix 49 50 # video strreaming 51 ../../configs/cast.nix 52 53 # c-base ollama tunnel 54 ../../configs/c-base-ai-tunnel.nix 55 56 # debug stuff 57 ../../configs/websites/mergebot.lassul.us.nix 58 59 # autoupdates 60 ../../configs/autoupdate.nix 61 62 # vaultwarden 63 ../../configs/vaultwarden.nix 64 65 # download user 66 ../../configs/download-user.nix 67 68 # caldav calendar 69 ../../configs/radicale.nix 70 71 # lassul.us website 72 ../../configs/websites/lassulus.nix 73 74 # where.is.lassul.us (location from home-assistant on a map) 75 ../../configs/websites/where.is.lassul.us 76 77 # realwallpaper generator 78 ../../configs/realwallpaper.nix 79 80 # paste + cyberlocker 81 ../../configs/paste 82 83 # document signing 84 ../../configs/docuseal.nix 85 86 # timeful availability polls (when.lassul.us) 87 ../../configs/timeful.nix 88 89 # request-and-approve booking page (book.lassul.us) 90 ../../configs/book.nix 91 92 # backups 93 ./backup.nix 94 95 # IPFS 96 ../../configs/services/flix/ipfs.nix 97 98 # n2n supernode (n2n.lassul.us) 99 ../../configs/n2n-supernode.nix 100 101 # pocket-id SSO IdP (id.lassul.us) 102 ../../configs/pocket-id.nix 103 104 # radicle public seed (radicle.lassul.us) 105 ../../configs/radicle.lassul.us.nix 106 # radicle identity + node for this machine (/var/lib/rad) 107 ../../configs/rad.nix 108 109 # self-hosted iroh relay (relay.lassul.us) 110 ../../configs/iroh-relay 111 112 # signed remote command execution (root executor + fleet dashboard, 113 # sigexec.lassul.us) 114 ../../configs/sigexec/executor.nix 115 ../../configs/sigexec/dashboard.nix 116 117 # parley federated IRC-speaking chat (parley.lassul.us) 118 ../../configs/parley.nix 119 120 # nixpkgs PR triage dashboard (review.lassul.us) 121 ../../configs/nixpkgs-triage.nix 122 123 # build farm (grpc://neoprism.r:50051) + binary cache (cache.lassul.us, 124 # niks3.lassul.us) 125 ../../configs/nix-farm/cache.nix 126 ../../configs/nix-farm/builder.nix 127 ]; 128 129 # lassul.us shouldn't be the default vhost here (nginx.nix already sets one) 130 services.nginx.virtualHosts."lassul.us" = { 131 default = lib.mkForce false; 132 locations = { 133 "= /wallpaper-marker.png".extraConfig = '' 134 alias /var/realwallpaper/realwallpaper-marker.png; 135 ''; 136 "= /wallpaper.png".extraConfig = '' 137 alias /var/realwallpaper/realwallpaper.png; 138 ''; 139 "= /wallpaper-stars-berlin.png".extraConfig = '' 140 alias /var/realwallpaper/realwallpaper-krebs-stars-berlin.png; 141 ''; 142 }; 143 }; 144 145 # riot VM (HFOS): fresh libvirt guest on a dedicated bridged public IP. 146 # Bridged onto ext-br with its own Hetzner MAC, so libvirt manages no 147 # firewall rules for it -> no nat-chain race, no restart-iptables hack (cf. hfos.nix). 148 virtualisation.libvirtd.enable = true; 149 security.polkit.enable = true; 150 users.users.riot = { 151 isNormalUser = true; 152 extraGroups = [ "libvirtd" ]; 153 openssh.authorizedKeys.keys = [ 154 "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwcI8EKqUwYVd4IlnTTaNY3qVMDe2M1sVPMdWaTJ8FnAXixBcZozFHyJ9bvGn6c/vFGBEACZk6QCxC2+sTxbaodCOUIyhAtxqAGO7jINmGrVWjg2NW8qBi+e+ekr2+jlhizxgMPgMcbawuazpMzrozi6sfJfRelJRqe6TxrK/SBO+V5pf8v2ubAfHHF6bJrqAykC247d2NmsHEyM/nGOOb2AlJx2vrK1FbFWr2fBAvnhJww9wqrfDYSM6+oRF/vrYKkT9cU8yjtCkyaJZTqRufF2pzc9a0X3Z4LHEIUykAl2aVmi5Wzh8CZj3qCeVb9Ju0ZGQIa5pvG5CbH5SUJOr9y6zhTx1xbqL+JYGkJqgHPMOCFiNIvWnFaNlnvFf4C9KcTf/VMOEvNdDklpjoWm+ptuQIciAhWKuUHd/6MqaRjmlvUqjl49EkRvYOGn9vasKt66MYrtfvbZ3tcqh5w9EEKhrcygiUXhIJzhu2s1BseAVRLjCsQ24BNbzrYiCO+vuk8/hdeHB1rP6Sas2v7jvYb3zQd647OTq+HrZWN8aCjCs5h8Y0QxrQzsLru0zKDRaNDlbSshNBAw7PzSXQAf9fISH7v6sC4nstf5jk+87ua/7xjWG4NYp5Y9FMFCsuE3XVmUCAbauq18RmN6V4s2TxCEs9bxONO0Vba4zwPnvMlw== cardno:000619250765" 155 ]; 156 }; 157 # the only forwarding the VM needs: accept traffic to/from its public IP. 158 networking.firewall.extraForwardRules = '' 159 ip daddr 95.217.192.52 accept 160 ip saddr 95.217.192.52 accept 161 ''; 162 163 # tank/radicle (radicle seed storage) is created by disko at install; on an 164 # already-provisioned host it must be created before deploying: 165 # zfs create -o mountpoint=/var/lib/radicle -o quota=80G tank/radicle 166 # nofail keeps a missing dataset from failing local-fs.target -> emergency 167 # mode (which has no network and bricks the box). 168 fileSystems."/var/lib/radicle".options = [ "nofail" ]; 169 170 # Fleet-wide safety net: this box is headless (Hetzner, console only via 171 # KVM), so a failed critical target must never strand us at the emergency 172 # shell. With emergency mode disabled systemd keeps booting instead of 173 # dropping to a console -> network + sshd still come up, so a bad deploy 174 # (e.g. a missing dataset, as happened once) leaves the box reachable to 175 # fix and redeploy rather than bricked. Mirrors nixpkgs' headless profile. 176 # Note: we intentionally do NOT auto-roll-back to the previous generation; 177 # our config is pulled from git by system.autoUpgrade, so a rollback would 178 # just re-pull the same broken config on the next run (a rollback loop). 179 systemd.enableEmergencyMode = false; 180 181 system.stateVersion = "24.05"; 182}