my nixos dotfiles :3 (git.koi.rip mirror) git.koi.rip/koi/dotfiles
linux dotfiles neovim nixos catppuccin
1
fork

Configure Feed

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

seber: ebil-club customPaths

june ce83b3e7 32b918a4

+27 -2
+27 -2
systems/seber/services/ebil-club.nix
··· 12 12 name, 13 13 sshPubkeys, 14 14 canonical ? null, 15 + customPaths ? { }, 15 16 }: 16 17 let 17 18 defaultHost = "${name}.ebil.club"; ··· 19 20 20 21 home = "/var/ebil.club/${name}"; 21 22 rootDir = "${home}/${defaultHost}"; 23 + 24 + customLocations = lib.foldlAttrs ( 25 + acc: dir: paths: 26 + acc 27 + // lib.listToAttrs ( 28 + map (p: { 29 + name = "/${p}/"; 30 + value = { 31 + alias = "${home}/${dir}/"; 32 + extraConfig = "try_files $uri $uri/ =404;"; 33 + }; 34 + }) paths 35 + ) 36 + ) { } customPaths; 22 37 in 23 38 { 24 39 services.nginx.virtualHosts = { ··· 43 58 }; 44 59 "@curl_fallback".return = 45 60 "200 'hi! this site is best viewed in a web browser :3 if u still want to curl it, try setting a different user-agent header'"; 46 - }; 61 + } 62 + // customLocations; 47 63 extraConfig = "error_page 404 /404.html;"; 48 64 } 49 65 // tls ··· 76 92 systemd.tmpfiles.rules = [ 77 93 "d ${home} 0750 ${name} nginx -" 78 94 "d ${home}/${defaultHost} 2750 ${name} nginx -" 79 - ]; 95 + ] 96 + ++ lib.mapAttrsToList (dir: _: "d ${home}/${dir} 2750 ${name} nginx -") customPaths; 80 97 }; 81 98 in 82 99 { ··· 94 111 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIObkVYhnLifnkE+0N07BH9mu0WJ1WWoGg3WM8wNn2ar" 95 112 ]; 96 113 canonical = "evergarden.moe"; 114 + customPaths = { 115 + gitea = [ "gitea" ]; 116 + userstyles = [ "userstyles" ]; 117 + bsky-feed = [ 118 + ".well-known" 119 + "xrpc" 120 + ]; 121 + }; 97 122 }) 98 123 (mkSite { 99 124 name = "nunikii";