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