diff --git a/clients/quadraticserver/redlib.nix b/clients/quadraticserver/redlib.nix index 6a61eec..6c28627 100644 --- a/clients/quadraticserver/redlib.nix +++ b/clients/quadraticserver/redlib.nix @@ -1,5 +1,8 @@ { config, + inputs, + pkgs, + lib, ... }: { @@ -9,6 +12,22 @@ address = "127.0.0.6"; port = 8082; settings.REDLIB_DEFAULT_THEME = "nord"; + + package = pkgs.redlib.overrideAttrs (oldAttrs: rec { + doCheck = false; + src = inputs.redlib; + + env = oldAttrs.env // { + LIBCLANG_PATH = "${lib.getLib pkgs.libclang}/lib"; + BORING_BSSL_INCLUDE_PATH = pkgs.boringssl.dev + "/include"; + BORING_BSSL_PATH = pkgs.boringssl; + }; + + cargoDeps = pkgs.rustPlatform.fetchCargoVendor { + inherit src; + hash = "sha256-eO3c7rlFna3DuO31etJ6S4c7NmcvgvIWZ1KVkNIuUqQ="; + }; + }); }; caddy.authedHosts."redlib.federated.nexus" = diff --git a/flake.lock b/flake.lock index 01af267..b2f1364 100644 --- a/flake.lock +++ b/flake.lock @@ -1665,11 +1665,11 @@ ] }, "locked": { - "lastModified": 1775853233, - "narHash": "sha256-UWPNN2R1CF4w6h+aK/ecaYYtL8n7s67/Lr+1YbHB95M=", + "lastModified": 1776027210, + "narHash": "sha256-rQEwWySmuokverRdMyHCcB4oxU8jc29xIw3YqlAxbaA=", "ref": "refs/heads/main", - "rev": "07decc10e243c3f13cc6261393b36f4f6bc65b3c", - "revCount": 457, + "rev": "b701da19dcd29044f6d0a61a6171aded5f5dd043", + "revCount": 469, "submodules": true, "type": "git", "url": "https://git.federated.nexus/nexus/Nexus" @@ -2633,6 +2633,22 @@ "type": "github" } }, + "redlib": { + "flake": false, + "locked": { + "lastModified": 1775740122, + "narHash": "sha256-jiLjyp6ze3HEsr7F+eRW3DyKJBJl+EoNjQ0wpEB+xlc=", + "owner": "Silvenga", + "repo": "redlib", + "rev": "72394ed320bd4437bb29e8780af0513b4ff02152", + "type": "github" + }, + "original": { + "owner": "Silvenga", + "repo": "redlib", + "type": "github" + } + }, "root": { "inputs": { "agenix": "agenix", @@ -2652,6 +2668,7 @@ "nix-matrix-appservices": "nix-matrix-appservices", "nixpkgs": "nixpkgs_2", "nixpkgs-custom": "nixpkgs-custom", + "redlib": "redlib", "run0-sudo-shim": "run0-sudo-shim", "sdm845": "sdm845", "stylix": "stylix", diff --git a/flake.nix b/flake.nix index 6afe7ac..00c6f82 100755 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,10 @@ url = "git+https://codeberg.org/lapingvino/cinny"; flake = false; }; + redlib = { + url = "github:Silvenga/redlib"; + flake = false; + }; stylix = { url = "github:danth/stylix"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/modules/server/continuwuity.nix b/modules/server/continuwuity.nix index 63f8f9e..ef13d8d 100644 --- a/modules/server/continuwuity.nix +++ b/modules/server/continuwuity.nix @@ -45,6 +45,8 @@ "freetard\\.net$" # racism, zip bomb attempts ]; ignore_messages_from_server_names = [ ]; + allow_joining_broken_rooms = true; + trusted_servers = [ "maunium.net" "codestorm.net"