{ config, pkgsUnstable, lib, ... }: let domain = "libreddit.vhack.eu"; in { services.libreddit = { enable = true; package = pkgsUnstable.redlib; port = 8080; address = "127.0.0.1"; openFirewall = false; }; services.nginx = { enable = true; virtualHosts.${domain} = { locations."/".proxyPass = "http://127.0.0.1:${toString config.services.libreddit.port}"; enableACME = lib.mkDefault true; forceSSL = lib.mkDefault true; }; }; }