diff --git a/hosts/yuki/services/anki-sync-server.nix b/hosts/yuki/services/anki-sync-server.nix new file mode 100644 index 0000000..f891622 --- /dev/null +++ b/hosts/yuki/services/anki-sync-server.nix @@ -0,0 +1,15 @@ +{config, ...}: { + sops.secrets.anki-pwd = {}; + services.anki-sync-server = { + enable = true; + openFirewall = true; + address = "100.108.113.89"; + port = 27701; + users = [ + { + username = "notoh"; + passwordFile = config.sops.secrets.anki-pwd.path; + } + ]; + }; +} diff --git a/hosts/yuki/services/default.nix b/hosts/yuki/services/default.nix index 4e0c566..f5e6495 100644 --- a/hosts/yuki/services/default.nix +++ b/hosts/yuki/services/default.nix @@ -8,5 +8,6 @@ ./wallos.nix ./homepage.nix ./searxng.nix + ./anki-sync-server.nix ]; }