Compare commits
2 Commits
303f515a1d
...
a9fb530505
Author | SHA1 | Date | |
---|---|---|---|
a9fb530505 | |||
83a819768a |
@ -116,6 +116,10 @@
|
|||||||
# auto backports from nixpkgs unstable
|
# auto backports from nixpkgs unstable
|
||||||
self.overlays.backports
|
self.overlays.backports
|
||||||
|
|
||||||
|
# modpacks (keeps modpack version in sync between hosts so i can reverse
|
||||||
|
# proxy create track map because it's broken)
|
||||||
|
self.overlays.modpacks
|
||||||
|
|
||||||
inputs.hyprwm-contrib.overlays.default
|
inputs.hyprwm-contrib.overlays.default
|
||||||
inputs.rust-overlay.overlays.default
|
inputs.rust-overlay.overlays.default
|
||||||
inputs.nixfiles-assets.overlays.default
|
inputs.nixfiles-assets.overlays.default
|
||||||
|
@ -193,6 +193,29 @@
|
|||||||
"kuma.protogen.io".locations."/".return = "301 https://uptime.protogen.io";
|
"kuma.protogen.io".locations."/".return = "301 https://uptime.protogen.io";
|
||||||
"vsc-hass.protogen.io" = mkReverseProxy 1881;
|
"vsc-hass.protogen.io" = mkReverseProxy 1881;
|
||||||
|
|
||||||
|
"trackmap.protogen.io" = let
|
||||||
|
root = pkgs.modpacks.notlite-ctm-static;
|
||||||
|
in {
|
||||||
|
useACMEHost = "protogen.io";
|
||||||
|
authelia.instance = "main";
|
||||||
|
authelia.endpointURL = "https://auth.protogen.io";
|
||||||
|
locations."/" = {
|
||||||
|
inherit root;
|
||||||
|
extraConfig = ''
|
||||||
|
autoindex off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
locations."/api/" = {
|
||||||
|
proxyPass = "http://10.10.0.3:3876";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
extraConfig = ''
|
||||||
|
chunked_transfer_encoding off;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_cache off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
"localhost" = {
|
"localhost" = {
|
||||||
default = true;
|
default = true;
|
||||||
|
@ -9,6 +9,7 @@ let
|
|||||||
in rec {
|
in rec {
|
||||||
backports = import ./backports.nix nixfiles;
|
backports = import ./backports.nix nixfiles;
|
||||||
mitigations = import ./mitigations.nix nixfiles;
|
mitigations = import ./mitigations.nix nixfiles;
|
||||||
|
modpacks = import ./modpacks.nix nixfiles;
|
||||||
default = composeManyExtensions [
|
default = composeManyExtensions [
|
||||||
backports
|
backports
|
||||||
mitigations
|
mitigations
|
||||||
|
27
overlays/modpacks.nix
Normal file
27
overlays/modpacks.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
nixfiles: final: prev:
|
||||||
|
let
|
||||||
|
inherit (final) lib;
|
||||||
|
inherit (lib) fakeHash;
|
||||||
|
notlite = let
|
||||||
|
commit = "7697c3a";
|
||||||
|
packHash = "sha256-/IA/NP1w9RcWg+71lxUN+Q3hz12GhN/e4lkSnaYyAb4=";
|
||||||
|
in final.fetchPackwizModpack {
|
||||||
|
url = "https://gitea.protogen.io/nullbite/notlite/raw/commit/${commit}/pack.toml";
|
||||||
|
inherit packHash;
|
||||||
|
};
|
||||||
|
|
||||||
|
notlite-ctm-static = final.stdenvNoCC.mkDerivation {
|
||||||
|
pname = "ctm-static";
|
||||||
|
version = "0.0.0";
|
||||||
|
src = final.emptyDirectory;
|
||||||
|
nativeBuildInputs = [ final.unzip ];
|
||||||
|
buildPhase = ''
|
||||||
|
unzip "${notlite}/mods/create-track-map-*.jar" 'assets/littlechasiu/ctm/static/*'
|
||||||
|
cp -r assets/littlechasiu/ctm/static/. $out/
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
modpacks = {
|
||||||
|
inherit notlite notlite-ctm-static;
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user