This repository has no description
0

Configure Feed

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

2configs/services/flix: remove bruellwuerfel

-101
-101
2configs/services/flix/default.nix
··· 163 163 root = "/var/download"; 164 164 extraConfig = '' 165 165 fancyindex on; 166 - fancyindex_footer "/fancy.html"; 167 166 include ${pkgs.nginx}/conf/mime.types; 168 167 include ${pkgs.writeText "extrMime" '' 169 168 types { ··· 173 172 create_full_put_path on; 174 173 ''; 175 174 }; 176 - locations."/chatty" = { 177 - proxyPass = "http://localhost:3000"; 178 - extraConfig = '' 179 - rewrite /chatty/(.*) /$1 break; 180 - proxy_set_header Host $host; 181 - ''; 182 - }; 183 - locations."= /fancy.html".extraConfig = '' 184 - alias ${pkgs.writeText "nginx_footer" '' 185 - <div id="mydiv"> 186 - <!-- Include a header DIV with the same name as the draggable DIV, followed by "header" --> 187 - <div id="mydivheader">Click here to move</div> 188 - <iframe src="/chatty/index.html"></iframe> 189 - </div> 190 - <style> 191 - #mydiv { 192 - position: absolute; 193 - z-index: 9; 194 - background-color: #f1f1f1; 195 - border: 1px solid #d3d3d3; 196 - text-align: center; 197 - } 198 175 199 - #mydivheader { 200 - padding: 10px; 201 - cursor: move; 202 - z-index: 10; 203 - background-color: #2196F3; 204 - color: #fff; 205 - } 206 - </style> 207 - <script> 208 - // Make the DIV element draggable: 209 - dragElement(document.getElementById("mydiv")); 210 - 211 - function dragElement(elmnt) { 212 - var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0; 213 - if (document.getElementById(elmnt.id + "header")) { 214 - // if present, the header is where you move the DIV from: 215 - document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown; 216 - } else { 217 - // otherwise, move the DIV from anywhere inside the DIV: 218 - elmnt.onmousedown = dragMouseDown; 219 - } 220 - 221 - function dragMouseDown(e) { 222 - e = e || window.event; 223 - e.preventDefault(); 224 - // get the mouse cursor position at startup: 225 - pos3 = e.clientX; 226 - pos4 = e.clientY; 227 - document.onmouseup = closeDragElement; 228 - // call a function whenever the cursor moves: 229 - document.onmousemove = elementDrag; 230 - } 231 - 232 - function elementDrag(e) { 233 - e = e || window.event; 234 - e.preventDefault(); 235 - // calculate the new cursor position: 236 - pos1 = pos3 - e.clientX; 237 - pos2 = pos4 - e.clientY; 238 - pos3 = e.clientX; 239 - pos4 = e.clientY; 240 - // set the element's new position: 241 - elmnt.style.top = (elmnt.offsetTop - pos2) + "px"; 242 - elmnt.style.left = (elmnt.offsetLeft - pos1) + "px"; 243 - } 244 - 245 - function closeDragElement() { 246 - // stop moving when mouse button is released: 247 - document.onmouseup = null; 248 - document.onmousemove = null; 249 - } 250 - } 251 - </script> 252 - ''}; 253 - ''; 254 176 }; 255 177 virtualHosts."jelly.r" = { 256 178 enableACME = true; ··· 319 241 printable = "no"; 320 242 }; 321 243 }; 322 - 323 - systemd.services.bruellwuerfel = 324 - let 325 - bruellwuerfelSrc = pkgs.fetchFromGitHub { 326 - owner = "krebs"; 327 - repo = "bruellwuerfel"; 328 - rev = "dc73adf69249fb63a4b024f1f3fbc9e541b27015"; 329 - sha256 = "078jp1gbavdp8lnwa09xa5m6bbbd05fi4x5ldkkgin5z04hwlhmd"; 330 - }; 331 - in 332 - { 333 - wantedBy = [ "multi-user.target" ]; 334 - after = [ "network-online.target" ]; 335 - environment = { 336 - IRC_CHANNEL = "#flix"; 337 - IRC_NICK = "bruelli"; 338 - IRC_SERVER = "irc.r"; 339 - IRC_HISTORY_FILE = "/tmp/bruelli.history"; 340 - }; 341 - serviceConfig = { 342 - ExecStart = "${pkgs.deno}/bin/deno run -A ${bruellwuerfelSrc}/src/index.ts"; 343 - }; 344 - }; 345 244 346 245 networking.firewall.allowedTCPPorts = [ 347 246 80 # nginx