feat(freyja): add immich.

This commit is contained in:
CronyAkatsuki 2025-05-24 18:55:33 +02:00
parent ec8c8f5e33
commit 19999dd485
2 changed files with 30 additions and 0 deletions

View file

@ -1,2 +1,5 @@
{...}: { {...}: {
imports = [
./immich.nix
];
} }

View file

@ -0,0 +1,27 @@
{...}: {
services.immich = {
enable = true;
port = 2283;
host = "127.0.0.1";
accelerationDevices = ["/dev/dri/renderD128"];
};
users.users.immich.extraGroups = ["video" "render"];
services.traefik.dynamicConfigOptions.http = {
services.immich.loadBalancer.servers = [
{
url = "http://localhost:2283";
}
];
routers.immich = {
rule = "Host(`immich.cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "immich";
entrypoints = "websecure";
};
};
}