From e231bb701a56ffaacc3a295303de703d649dca55 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sun, 30 Jun 2024 17:44:30 +0100 Subject: [PATCH] fix(libreddit): configure service with default settings and use unstable redlib package --- hosts/architect/libreddit.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/architect/libreddit.nix b/hosts/architect/libreddit.nix index 504e6bf..e5ab9c4 100644 --- a/hosts/architect/libreddit.nix +++ b/hosts/architect/libreddit.nix @@ -1,12 +1,22 @@ -{ config, ... }: +{ config, pkgs, ... }: let domain = "reddit.giugl.io"; in { + systemd.services.libreddit.environment = { + REDLIB_ROBOTS_DISABLE_INDEXING = "on"; + REDLIB_DEFAULT_THEME = "dracula"; + REDLIB_DEFAULT_SHOW_NSFW = "on"; + REDLIB_DEFAULT_BLUR_NSFW = "off"; + REDLIB_DEFAULT_USE_HLS = "on"; + REDLIB_DEFAULT_HIDE_HLS_NOTIFICATION = "on"; + }; + services.libreddit = { enable = true; port = 9090; + package = pkgs.unstablePkgs.redlib; }; architect.vhost.${domain} = {