nixos-config

NixOS configs for my systems
Log | Files | Refs

commit 4a5a4642b5691c2a04a5c3f73b2cb7d701cf5cf6
parent 8153269cc47631e43ae1d22c838809f3df2270f4
Author: vin <vin@vineetk.net>
Date:   Thu,  9 Jan 2025 04:38:31 -0500

add redlib

Diffstat:
Mhosts/demiurge/default.nix | 67+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+), 0 deletions(-)

diff --git a/hosts/demiurge/default.nix b/hosts/demiurge/default.nix @@ -204,6 +204,13 @@ sslCertificate = "/var/demiurge.vpn.crt"; sslCertificateKey = "/var/demiurge.vpn.key"; }; + + "redlib.demiurge.vpn" = { + forceSSL = true; + locations."/".proxyPass = "http://127.0.0.1:8082"; + sslCertificate = "/var/demiurge.vpn.crt"; + sslCertificateKey = "/var/demiurge.vpn.key"; + }; }; }; @@ -241,6 +248,66 @@ pulse.enable = true; }; + # reddit + redlib = { + enable = true; + + address = "127.0.0.1"; + port = 8082; + + settings = { + # Instance-specific settings + # Enable SFW-only mode for the instance + REDLIB_SFW_ONLY = false; + # Set a banner message for the instance + REDLIB_BANNER = ""; + # Disable search engine indexing + REDLIB_ROBOTS_DISABLE_INDEXING = true; + # Set the Pushshift frontend for "removed" links + REDLIB_PUSHSHIFT_FRONTEND = "undelete.pullpush.io"; + + # Default user settings + # Set the default theme (options: system, light, dark, black, dracula, nord, laserwave, violet, gold, rosebox, gruvboxdark, gruvboxlight) + REDLIB_DEFAULT_THEME = "black"; + # Set the default front page (options: default, popular, all) + REDLIB_DEFAULT_FRONT_PAGE = "default"; + # Set the default layout (options: card, clean, compact) + REDLIB_DEFAULT_LAYOUT = "compact"; + # Enable wide mode by default + REDLIB_DEFAULT_WIDE = true; + # Set the default post sort method (options: hot, new, top, rising, controversial) + REDLIB_DEFAULT_POST_SORT = "hot"; + # Set the default comment sort method (options: confidence, top, new, controversial, old) + REDLIB_DEFAULT_COMMENT_SORT = "confidence"; + # Enable blurring Spoiler content by default + REDLIB_DEFAULT_BLUR_SPOILER = false; + # Enable showing NSFW content by default + REDLIB_DEFAULT_SHOW_NSFW = false; + # Enable blurring NSFW content by default + REDLIB_DEFAULT_BLUR_NSFW = false; + # Enable HLS video format by default + REDLIB_DEFAULT_USE_HLS = false; + # Hide HLS notification by default + REDLIB_DEFAULT_HIDE_HLS_NOTIFICATION = false; + # Disable autoplay videos by default + REDLIB_DEFAULT_AUTOPLAY_VIDEOS = false; + # Define a default list of subreddit subscriptions (format: sub1+sub2+sub3) + REDLIB_DEFAULT_SUBSCRIPTIONS = "ergomechkeyboards+localllama+factorio+warframe+elitedangerous+unixporn+usabilityporn"; + # Define a default list of subreddit filters (format: sub1+sub2+sub3) + REDLIB_DEFAULT_FILTERS = "popular+all+funny+memes"; + # Hide awards by default + REDLIB_DEFAULT_HIDE_AWARDS = false; + # Hide sidebar and summary + REDLIB_DEFAULT_HIDE_SIDEBAR_AND_SUMMARY = false; + # Disable the confirmation before visiting Reddit + REDLIB_DEFAULT_DISABLE_VISIT_REDDIT_CONFIRMATION = false; + # Hide score by default + REDLIB_DEFAULT_HIDE_SCORE = false; + # Enable fixed navbar by default + REDLIB_DEFAULT_FIXED_NAVBAR = true; + }; + }; + # searching searx = { enable = true;