nixos/hosts/architect/libreddit.nix
2023-10-21 15:00:58 +02:00

17 lines
274 B
Nix

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