nixos-config/machines/fuuko/services/ankisyncd.nix

18 lines
312 B
Nix
Raw Normal View History

2021-03-09 21:22:19 +01:00
{ config, ... }:
let
cfg = config.services.ankisyncd;
in
{
services.ankisyncd = {
enable = true;
host = "127.0.0.1";
};
services.nginx.virtualHosts."anki.sbruder.de" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://${cfg.host}:${toString cfg.port}";
};
}