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