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

10 lines
280 B
Nix

{ config, lib, upkgs, ... }:
let port = config.satellite.ports.redlib;
in
{
services.libreddit.enable = true;
satellite.nginx.at.redlib.port = port;
systemd.services.libreddit.serviceConfig.ExecStart =
lib.mkForce "${upkgs.redlib}/bin/redlib --port ${toString port}";
}