push
This commit is contained in:
1 parent
8d55b87546
commit
c86ee98def
14 files changed
+472
-111
No files matched your search
@@ -0,0 +1,74 @@
|
||||
{
|
||||
den.aspects.services.redlib = let port = 8975; in {
|
||||
tunnel = { subdomain = "reddit"; inherit port; };
|
||||
|
||||
nixos = { pkgs, lib, ... }: {
|
||||
services.redlib = {
|
||||
enable = true;
|
||||
|
||||
# upstream main with the wreq TLS-fingerprint fix for Reddit OAuth 401s
|
||||
package = pkgs.redlib.overrideAttrs (old: rec {
|
||||
version = "0.36.0-unstable-2026-04-24";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "redlib-org";
|
||||
repo = "redlib";
|
||||
rev = "a4d36e954cf1bd64f209cd8868c5a29edc81b374";
|
||||
hash = "sha256-siyD6A12UALQIV7BMd7zu1TaojleTEYtpxPszuhx1/Y=";
|
||||
};
|
||||
|
||||
cargoDeps = pkgs.rustPlatform.fetchCargoVendor {
|
||||
inherit src;
|
||||
hash = "sha256-eO3c7rlFna3DuO31etJ6S4c7NmcvgvIWZ1KVkNIuUqQ=";
|
||||
};
|
||||
|
||||
# BoringSSL via boring-sys2
|
||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ (with pkgs; [
|
||||
cmake go perl git rustPlatform.bindgenHook
|
||||
]);
|
||||
|
||||
checkFlags = (old.checkFlags or [ ]) ++ [
|
||||
"--skip=oauth::tests::test_generic_web_backend"
|
||||
"--skip=oauth::tests::test_mobile_spoof_backend"
|
||||
];
|
||||
});
|
||||
|
||||
address = "127.0.0.1";
|
||||
port = port;
|
||||
|
||||
settings = {
|
||||
SFW_ONLY = "off";
|
||||
ROBOTS_DISABLE_INDEXING = "on";
|
||||
ENABLE_RSS = "on";
|
||||
THEME = "system";
|
||||
FRONT_PAGE = "default";
|
||||
LAYOUT = "card";
|
||||
WIDE = "on";
|
||||
POST_SORT = "hot";
|
||||
COMMENT_SORT = "confidence";
|
||||
BLUR_SPOILER = "off";
|
||||
SHOW_NSFW = "on";
|
||||
BLUR_NSFW = "off";
|
||||
USE_HLS = "on";
|
||||
HIDE_HLS_NOTIFICATION = "off";
|
||||
AUTOPLAY_VIDEOS = "off";
|
||||
HIDE_AWARDS = "off";
|
||||
DISABLE_VISIT_REDDIT_CONFIRMATION = "off";
|
||||
HIDE_SCORE = "off";
|
||||
HIDE_SIDEBAR_AND_SUMMARY = "off";
|
||||
FIXED_NAVBAR = "on";
|
||||
REMOVE_DEFAULT_FEEDS = "off";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.redlib = {
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
serviceConfig = {
|
||||
Restart = lib.mkForce "always";
|
||||
RestartSec = "30s";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user