feat: full nix-topology

This commit is contained in:
Leon Schwarzäugl 2025-06-16 00:21:41 +02:00
parent ed15ef02bb
commit c7132d2d85
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
38 changed files with 2464 additions and 807 deletions

View file

@ -1,4 +1,7 @@
{ lib, config, ... }:
let
serviceDomain = "synki.swarsel.win";
in
{
options.swarselsystems.modules.server.ankisync = lib.mkEnableOption "enable ankisync on server";
config = lib.mkIf config.swarselsystems.modules.server.ankisync {
@ -7,6 +10,11 @@
sops.secrets.swarsel = { owner = "root"; };
topology.self.services.anki = {
name = lib.mkForce "Anki Sync Server";
info = "https://${serviceDomain}";
};
services.anki-sync-server = {
enable = true;
port = 27701;
@ -22,7 +30,7 @@
services.nginx = {
virtualHosts = {
"synki.swarsel.win" = {
"${serviceDomain}" = {
enableACME = true;
forceSSL = true;
acmeRoot = null;