From 28d89fe278cc611d8cb1b58cb565ece7a2def474 Mon Sep 17 00:00:00 2001 From: 4DBug <4DBug@github.com> Date: Mon, 9 Feb 2026 23:10:55 -0600 Subject: [PATCH] push --- main.nix | 1 + modules/redlib.nix | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 modules/redlib.nix diff --git a/main.nix b/main.nix index aa46df1..8a85054 100644 --- a/main.nix +++ b/main.nix @@ -17,6 +17,7 @@ ./modules/cloudflared.nix ./modules/invidious.nix ./modules/glances.nix + ./modules/redlib.nix ({ pkgs, ... }: { environment.systemPackages = with pkgs; [ diff --git a/modules/redlib.nix b/modules/redlib.nix new file mode 100644 index 0000000..a35dd96 --- /dev/null +++ b/modules/redlib.nix @@ -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"] + }; + }; +}