diff --git a/hosts/rpi4/reddit-subscriptions.txt b/hosts/rpi4/reddit-subscriptions.txt new file mode 100644 index 0000000..3ffad33 --- /dev/null +++ b/hosts/rpi4/reddit-subscriptions.txt @@ -0,0 +1,42 @@ +Addons4Kodi +archlinux +AreTheStraightsOK +autism +beatsaber +Bitwarden +boykisser +ConservativeRap +crackheadcraigslist +crackwatch +DataHoarder +Destiny2 +DestinyMemes +DestinyTheGame +duolingo +ennnnnnnnnnnnbbbbbby +evilautism +femboymemes +feminineboys +flatpak +geometrydash +homeassistant +ihaveihaveihavereddit +linux +linux_gaming +NixOS +NonBinaryTalk +okbuddyhetero +peepeeshart +prismlauncher +rust +rustjerk +selfhosted +steam +SteamDeck +talesfromtechsupport +techsupport +termux +theamazingdigitalciru +Ultrakill +VaushV +whenthe diff --git a/hosts/rpi4/services.nix b/hosts/rpi4/services.nix index 04997e4..ee07f42 100644 --- a/hosts/rpi4/services.nix +++ b/hosts/rpi4/services.nix @@ -77,5 +77,19 @@ enable = true; storageDriver = "btrfs"; }; + + systemd.services.libreddit.environment = { + LIBREDDIT_DEFAULT_SUBSCRIPTIONS = lib.pipe ./reddit-subscriptions.txt [ + builtins.readFile + (lib.splitString "\n") + (lib.filter (x: x != "")) + (lib.concatStringsSep "+") + ]; + }; + services.libreddit = { + enable = true; + port = 8087; + pkg = pkgs.redlib; + }; }; }