Added: Routes for learnlytics

This commit is contained in:
2026-02-25 11:54:11 +01:00
parent 6c842d4793
commit b204c1d133
4 changed files with 150 additions and 43 deletions

View File

@@ -0,0 +1,19 @@
{ pkgs, ... }:
{
systemd.services.learnlytics-avatar = {
description = "Learnlytics Avatar Upload Server";
wantedBy = [ "multi-user.target" ];
after = [
"network.target"
"postgrest.service"
];
serviceConfig = {
ExecStart = "${pkgs.python3}/bin/python3
/etc/learnlytics/avatar_server.py";
WorkingDirectory = "/etc/learnlytics";
Restart = "on-failure";
User = "postgres"; # or whatever user runs postgrest
StateDirectory = "learnlytics";
};
};
}