feat(jeeves): add anki-sync-server module

This commit is contained in:
reo101 2024-09-15 15:42:51 +03:00
parent 36ad62c101
commit 93717bf1a9
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
4 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ inputs, lib, pkgs, config, ... }:
{
age.secrets."anki.reo101" = {
rekeyFile = "${inputs.self}/secrets/home/jeeves/anki/reo101.age";
mode = "400";
};
services.anki-sync-server = {
enable = true;
package = pkgs.anki-sync-server;
users = [
{
username = "reo101";
passwordFile = config.age.secrets."anki.reo101".path;
}
];
address = "0.0.0.0";
port = 27701;
};
services.nginx = {
virtualHosts."anki.jeeves.local" = {
enableACME = false;
forceSSL = false;
locations."/" = {
proxyPass = "http://127.0.0.1:${builtins.toString config.services.anki-sync-server.port}";
};
};
};
}

View file

@ -20,6 +20,7 @@
# ./nextcloud.nix # ./nextcloud.nix
./paperless.nix ./paperless.nix
./podman.nix ./podman.nix
./anki.nix
]; ];
# services.kanidm = { }; # services.kanidm = { };

View file

@ -0,0 +1,8 @@
age-encryption.org/v1
-> X25519 jROnYoLUU52v0VQuZVBUlfa/U1+LxqaaHXJkWLqis1Q
tDZKi1bq3h08JOyobEZq7fqAbe/Pyf1YPQj3y9CY8cM
-> KWa-grease bQ\#u]
XzYchZjVfR7y1kZp2PmXyZXyrYqGwZd5iKPERhSdc+3Pd2qU1pxVNJEZcAwcwpyM
/+x8jADcUcWs9+MzgW0qHKzM4vcpLCE
--- 0znfnFvlzrqKXsKHkbH5K7fS+vLMSfEKc84Wm0hFVGg
=ã$þš ‘¦ ôÂ/àÝœzË»©P©íß2“<1F>yg# º¯?7Qcsq<73>