{ pkgs-unstable, config, lib, ... }: let domain = "libreddit.vhack.eu"; in { services.libreddit = { enable = true; package = pkgs-unstable.redlib; 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; }; }; }