Nixfiles! :3
0

Configure Feed

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

I suppose nix ls was confused there


Signed-off-by: MLC Bloeiman <mar@strawmelonjuice.com>

MLC Bloeiman (Jul 12, 2026, 12:18 AM +0200) a37b6c85 fe3f2102

+97 -98
+97 -98
home/host-specific/Cubchoo.nix
··· 93 93 ''; 94 94 95 95 # Caddy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 96 - services.caddy = { 97 - enable = true; 98 - virtualHosts = { 99 - # email = "webmaster@strawmelonjuice.com"; 100 - configFile = pkgs.writeText "Caddyfile" '' 101 - { 102 - email webmaster@strawmelonjuice.com 103 - } 96 + services.podman.containers.caddy = { 97 + image = "docker.io/library/caddy"; 98 + network = "server-net"; 99 + ports = [ 100 + "80:80" 101 + "443:443" 102 + "443:443/udp" 103 + ]; 104 + volumes = [ 105 + "${config.home.homeDirectory}/services/data/caddy:/data:Z" 106 + "${config.home.homeDirectory}/.config/services/Caddy:/etc/caddy:Z" 107 + "${config.home.homeDirectory}/site:/srv/strawmelonjuice-site:ro" 108 + ]; 109 + }; 104 110 105 - (icon_redirect) { 106 - redir /assets/site_icon.png https://strawmelonjuice.com/strawmelonjuice.svg permanent 107 - redir /favicon.ico https://strawmelonjuice.com/strawmelonjuice.svg permanent 108 - redir /favicon.png https://strawmelonjuice.com/strawmelonjuice.svg permanent 109 - redir /assets/img/favicon.svg https://strawmelonjuice.com/strawmelonjuice.svg permanent 110 - redir /assets/img/favicon.png https://strawmelonjuice.com/strawmelonjuice.svg permanent 111 - redir /assets/img/site_icon.svg https://strawmelonjuice.com/strawmelonjuice.svg permanent 112 - redir /assets/img/logo.svg https://strawmelonjuice.com/strawmelonjuice.svg permanent 113 - } 111 + xdg.configFile."services/Caddy/Caddyfile".text = '' 112 + { 113 + email webmaster@strawmelonjuice.com 114 + } 114 115 115 - knot.strawmelonjuice.com { 116 - reverse_proxy tangled:5555 117 - } 116 + (icon_redirect) { 117 + redir /assets/site_icon.png https://strawmelonjuice.com/strawmelonjuice.svg permanent 118 + redir /favicon.ico https://strawmelonjuice.com/strawmelonjuice.svg permanent 119 + redir /favicon.png https://strawmelonjuice.com/strawmelonjuice.svg permanent 120 + redir /assets/img/favicon.svg https://strawmelonjuice.com/strawmelonjuice.svg permanent 121 + redir /assets/img/favicon.png https://strawmelonjuice.com/strawmelonjuice.svg permanent 122 + redir /assets/img/site_icon.svg https://strawmelonjuice.com/strawmelonjuice.svg permanent 123 + redir /assets/img/logo.svg https://strawmelonjuice.com/strawmelonjuice.svg permanent 124 + } 118 125 119 - music.strawmelonjuice.com { 120 - reverse_proxy navidrome:4533 121 - } 126 + git.strawmelonjuice.com { 127 + redir https://forge.strawmelonjuice.com{uri} 128 + } 122 129 123 - git.strawmelonjuice.com { 124 - redir https://forge.strawmelonjuice.com{uri} 125 - } 130 + forge.strawmelonjuice.com { 131 + redir /assets/site_icon.png https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 132 + redir /favicon.ico https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 133 + redir /favicon.png https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 134 + redir /assets/img/favicon.svg https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 135 + redir /assets/img/favicon.png https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 136 + redir /assets/img/site_icon.svg https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 137 + redir /assets/img/logo.svg https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 126 138 127 - forge.strawmelonjuice.com { 128 - redir /assets/site_icon.png https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 129 - redir /favicon.ico https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 130 - redir /favicon.png https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 131 - redir /assets/img/favicon.svg https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 132 - redir /assets/img/favicon.png https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 133 - redir /assets/img/site_icon.svg https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 134 - redir /assets/img/logo.svg https://strawmelonjuice.com/svg/forgejo_strawmelonjuice.svg permanent 135 139 140 + # proxy to forgejo 141 + # reverse_proxy anubis-forge:3000 { 142 + reverse_proxy forgejo:3000 { 143 + header_up X-Real-Ip {remote_host} 144 + } 145 + } 136 146 137 - # proxy to forgejo 138 - # reverse_proxy anubis-forge:3000 { 139 - reverse_proxy forgejo:3000 { 140 - header_up X-Real-Ip {remote_host} 141 - } 142 - } 147 + files-shared.strawmelonjuice.com { 148 + redir https://media.strawmelonjuice.com{uri} 149 + } 143 150 144 - files-shared.strawmelonjuice.com { 145 - redir https://media.strawmelonjuice.com{uri} 146 - } 151 + fonts.strawmelonjuice.com { 152 + reverse_proxy 100.65.127.22:39936 153 + } 147 154 148 - fonts.strawmelonjuice.com { 149 - reverse_proxy 100.65.127.22:39936 150 - } 155 + media.strawmelonjuice.com { 156 + # request_body { 157 + # max_size 3GB 158 + # } 159 + reverse_proxy strawmedia:3022 160 + } 151 161 152 - media.strawmelonjuice.com { 153 - # request_body { 154 - # max_size 3GB 155 - # } 156 - reverse_proxy strawmedia:3022 157 - } 162 + cloud.strawmelonjuice.com { 163 + reverse_proxy owncloud_server:8080 164 + } 158 165 159 - cloud.strawmelonjuice.com { 160 - reverse_proxy owncloud_server:8080 161 - } 166 + www.strawmelonjuice.com, 167 + strawmelonjuice.com { 168 + # Old strawmelonjuice.php and Cynthia Full pages that google is still trying and its annoying me. 169 + @old_php_pages { 170 + query p=* 171 + query c=* 172 + } 162 173 163 - www.strawmelonjuice.com, 164 - strawmelonjuice.com { 165 - # Old strawmelonjuice.php and Cynthia Full pages that google is still trying and its annoying me. 166 - @old_php_pages { 167 - query p=* 168 - query c=* 169 - } 174 + handle @old_php_pages { 175 + respond "This content is no longer available." 410 176 + } 177 + # ===================------ ATPROTO ------=================== 178 + handle_path /.well-known/atproto-did { 179 + respond "did:plc:jgtfsmv25thfs4zmydtbccnn" 180 + } 170 181 171 - handle @old_php_pages { 172 - respond "This content is no longer available." 410 173 - } 174 - # ===================------ ATPROTO ------=================== 175 - handle_path /.well-known/atproto-did { 176 - respond "did:plc:jgtfsmv25thfs4zmydtbccnn" 177 - } 182 + # ================---- Matrix Homeserver ----================ 183 + handle /.well-known/matrix/* { 184 + header Access-Control-Allow-Origin "*" 185 + header Content-Type "application/json" 178 186 179 - # ================---- Matrix Homeserver ----================ 180 - handle /.well-known/matrix/* { 181 - header Access-Control-Allow-Origin "*" 182 - header Content-Type "application/json" 183 - 184 - # Using a Matcher inside the handle to respond differently 185 - @server path /.well-known/matrix/server 186 - respond @server `{"m.server": "strawmelonjuice.com:443"}` 187 - 188 - @client path /.well-known/matrix/client 189 - respond @client `{"m.homeserver": {"base_url": "https://strawmelonjuice.com"}}` 190 - } 191 - 192 - handle /_matrix/* { 193 - reverse_proxy matrix:8008 194 - } 187 + # Using a Matcher inside the handle to respond differently 188 + @server path /.well-known/matrix/server 189 + respond @server `{"m.server": "strawmelonjuice.com:443"}` 195 190 196 - handle /_synapse/client/* { 197 - reverse_proxy matrix:8008 198 - } 191 + @client path /.well-known/matrix/client 192 + respond @client `{"m.homeserver": {"base_url": "https://strawmelonjuice.com"}}` 193 + } 199 194 200 - # ===================------ My Site ------=================== 201 - handle { 202 - root * /srv/strawmelonjuice-site/ 203 - try_files {path} {path}/index.html /unpopulated.html unpopulated.html 204 - file_server 205 - } 206 - } 207 - ''; 208 - }; 195 + handle /_matrix/* { 196 + reverse_proxy matrix:8008 197 + } 209 198 210 - }; 199 + handle /_synapse/client/* { 200 + reverse_proxy matrix:8008 201 + } 211 202 203 + # ===================------ My Site ------=================== 204 + handle { 205 + root * /srv/strawmelonjuice-site/ 206 + try_files {path} {path}/index.html /unpopulated.html unpopulated.html 207 + file_server 208 + } 209 + } 210 + ''; 212 211 # Owncloud ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 213 212 # Add symlink between Owncloud files <-> Home folders 214 213 home.file."media/music" = {