nixos/hosts/architect/libreddit.nix
2023-11-16 17:42:55 +01:00

20 lines
303 B
Nix

{ config, ... }:
let
domain = "reddit.giugl.io";
in
{
services.libreddit = {
enable = true;
port = 9090;
};
architect.vhost.${domain} = {
dnsInterfaces = [ "lan" "tailscale" ];
locations."/" = {
port = config.services.libreddit.port;
allowWAN = true;
};
};
}