fuuko: Add ankisyncd

This commit is contained in:
Simon Bruder 2021-03-09 21:22:19 +01:00
parent 429144166d
commit d6bddf40c0
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 18 additions and 0 deletions

View file

@ -5,6 +5,7 @@
../../modules
../../users/simon
./services/ankisyncd.nix
./services/dnsmasq.nix
./services/grafana.nix
./services/media.nix

View file

@ -0,0 +1,17 @@
{ 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}";
};
}