This commit is contained in:
2023-12-27 22:12:54 -06:00
parent 5d23ff3e33
commit 76e989eb39
3 changed files with 34 additions and 17 deletions

View File

@@ -2,7 +2,8 @@
{
environment.systemPackages = with pkgs; [ docker-compose ];
virtualisation = {
virtualisation = let postgresSocket = "/run/postgresql";
in {
docker = {
enable = true;
enableNvidia = true;
@@ -38,6 +39,14 @@
};
extraOptions = [ "--cap-add" "MKNOD" ];
};
ryot = {
image = "ghcr.io/ignisda/ryot:latest";
environment = {
DATABASE_URL = "postgres:///ryot?host=${postgresSocket}";
};
ports = [ "8765:8000" ];
volumes = [ "${postgresSocket}:${postgresSocket}" ];
};
flaresolverr = {
autoStart = true;
image = "ghcr.io/flaresolverr/flaresolverr:latest";