This commit is contained in:
4DBug
2026-02-09 23:10:55 -06:00
parent 08833c7c31
commit 28d89fe278
2 changed files with 35 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
./modules/cloudflared.nix ./modules/cloudflared.nix
./modules/invidious.nix ./modules/invidious.nix
./modules/glances.nix ./modules/glances.nix
./modules/redlib.nix
({ pkgs, ... }: { ({ pkgs, ... }: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

34
modules/redlib.nix Normal file
View File

@@ -0,0 +1,34 @@
{ config, lib, pkgs, ... }:
{
services.redlib = {
enable = true;
address = "127.0.0.1";
port = 8975;
openFirewall = false;
settings = {
SFW_ONLY = "off"; # ["on", "off"]
ROBOTS_DISABLE_INDEXING = "on"; # ["on", "off"]
ENABLE_RSS = "on"; # ["on", "off"]
THEME = "system"; # ["system", "light", "dark", "black", "dracula", "nord", "laserwave", "violet", "gold", "rosebox", "gruvboxdark", "gruvboxlight", "tokyoNight", "icebergDark", "doomone", "libredditBlack", "libredditDark", "libredditLight"]
FRONT_PAGE = "default"; # ["default", "popular", "all"]
LAYOUT = "card"; # ["card", "clean", "compact"]
WIDE = "on"; # ["on", "off"]
POST_SORT = "hot"; # ["hot", "new", "top", "rising", "controversial"]
COMMENT_SORT = "confidence"; # ["confidence", "top", "new", "controversial", "old"]
BLUR_SPOILER = "off"; # ["on", "off"]
SHOW_NSFW = "on"; # ["on", "off"]
BLUR_NSFW = "off"; # ["on", "off"]
USE_HLS = "on"; # ["on", "off"]
HIDE_HLS_NOTIFICATION = "off"; # ["on", "off"]
AUTOPLAY_VIDEOS = "off"; # ["on", "off"]
HIDE_AWARDS = "off"; # ["on", "off"]
DISABLE_VISIT_REDDIT_CONFIRMATION = "off"; # ["on", "off"]
HIDE_SCORE = "off"; # ["on", "off"]
HIDE_SIDEBAR_AND_SUMMARY = "off"; # ["on", "off"]
FIXED_NAVBAR = "on"; # ["on", "off"]
REMOVE_DEFAULT_FEEDS = "off"; # ["on", "off"]
};
};
}