diff --git a/hosts/nixos/lapetus/services/redlib.nix b/hosts/nixos/lapetus/services/redlib.nix index 90615d8..2b753a1 100644 --- a/hosts/nixos/lapetus/services/redlib.nix +++ b/hosts/nixos/lapetus/services/redlib.nix @@ -1,13 +1,13 @@ -{ config, upkgs, ... }: { +{ config, lib, upkgs, ... }: +let port = 8416; +in +{ imports = [ ../../common/optional/services/nginx.nix ]; services.nginx.virtualHosts."redlib.moonythm.dev" = - config.satellite.proxy config.services.invidious.port { }; + config.satellite.proxy port { }; - services.libreddit = { - enable = true; - port = 8416; - # REASON: not in stable yet - package = upkgs.redlib; - }; + services.libreddit.enable = true; + systemd.services.libreddit.serviceConfig.ExecStart = + lib.mkForce "${upkgs.redlib}/bin/redlib --port ${port}"; }