feat(jeeves): add anki-sync-server
module
This commit is contained in:
parent
36ad62c101
commit
93717bf1a9
4 changed files with 40 additions and 0 deletions
31
hosts/nixos/jeeves/anki.nix
Normal file
31
hosts/nixos/jeeves/anki.nix
Normal 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}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -20,6 +20,7 @@
|
||||||
# ./nextcloud.nix
|
# ./nextcloud.nix
|
||||||
./paperless.nix
|
./paperless.nix
|
||||||
./podman.nix
|
./podman.nix
|
||||||
|
./anki.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# services.kanidm = { };
|
# services.kanidm = { };
|
||||||
|
|
8
secrets/home/jeeves/anki/reo101.age
Normal file
8
secrets/home/jeeves/anki/reo101.age
Normal 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>
|
Binary file not shown.
Loading…
Reference in a new issue