My Nix Configuration

[marvin] add immich service

Changed files
+30
hosts
marvin
+1
hosts/marvin/default.nix
···
./services/git.nix
./services/golink.nix
./services/grafana.nix
+
./services/immich.nix
./services/jellyfin.nix
./services/matrix.nix
./services/miniflux.nix
+29
hosts/marvin/services/immich.nix
···
+
{ self, config, ... }:
+
let
+
d = self.lib.data.services.immich;
+
in
+
{
+
services = {
+
immich = {
+
inherit (d) port;
+
enable = true;
+
host = "0.0.0.0";
+
redis.enable = true;
+
mediaLocation = "/var/media/photos/";
+
accelerationDevices = [ "/dev/dri/renderD128" ];
+
settings = null;
+
};
+
immich-public-proxy = {
+
enable = true;
+
port = d.pubProxy;
+
immichUrl = "localhost:${toString d.port}";
+
settings.ipp = {
+
downloadedFilename = 1;
+
};
+
};
+
};
+
users.users.immich.extraGroups = [
+
"video"
+
"render"
+
];
+
}