nixos/hosts/architect/libreddit.nix

27 lines
436 B
Nix

{ pkgs, ... }:
with import ./network.nix;
let domain = "reddit.giugl.io";
in {
services = {
libreddit = {
enable = true;
port = 9090;
};
nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:9090";
};
};
};
networking.extraHosts = ''
${architect-lan} ${domain}
${architect-wg} ${domain}
'';
}