override redlib

This commit is contained in:
Henry Hiles 2026-04-15 19:58:00 -04:00
commit ea619876fa
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 46 additions and 4 deletions

View file

@ -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" =

25
flake.lock generated
View file

@ -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",

View file

@ -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";

View file

@ -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"