1
Fork 0
satellite/hosts/nixos/lapetus/services/redlib.nix

14 lines
365 B
Nix
Raw Normal View History

{ config, lib, upkgs, ... }:
let port = 8416;
in
{
2024-04-22 22:45:08 +02:00
imports = [ ../../common/optional/services/nginx.nix ];
services.nginx.virtualHosts."redlib.moonythm.dev" =
config.satellite.proxy port { };
2024-04-22 22:45:08 +02:00
services.libreddit.enable = true;
systemd.services.libreddit.serviceConfig.ExecStart =
lib.mkForce "${upkgs.redlib}/bin/redlib --port ${toString port}";
2024-04-22 22:45:08 +02:00
}