Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ADD: immich

+24
+2
coredns/ngp.computer.hosts
··· 1 1 192.168.1.3 img.ngp.computer 2 + 192.168.1.3 photos.ngp.computer 2 3 192.168.1.3 misaki.ngp.computer 3 4 4 5 fe80::9ab7:85ff:fe1e:dfe8 img.ngp.computer 6 + fe80::9ab7:85ff:fe1e:dfe8 photos.ngp.computer 5 7 fe80::9ab7:85ff:fe1e:dfe8 misaki.ngp.computer
+22
services.nix
··· 321 321 openFirewall = true; 322 322 }; 323 323 324 + services.immich = { 325 + enable = true; 326 + accelerationDevices = [ "/dev/dri/renderD128" ]; 327 + mediaLocation = "/srv/shokuhou/pictures/immich"; 328 + }; 329 + users.users.immich.extraGroups = [ "video" "render" "nas" ]; 330 + 324 331 # Nginx Reverse SSL Proxy 325 332 services.nginx = { 326 333 enable = true; ··· 338 345 virtualHosts."cache.packetlost.dev" = { 339 346 locations."/".proxyPass = 340 347 "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}"; 348 + }; 349 + virtualHosts."photos.ngp.computer" = { 350 + enableACME = true; 351 + forceSSL = true; 352 + locations."/" = { 353 + proxyPass = "http://[::1]:${toString config.services.immich.port}"; 354 + proxyWebsockets = true; 355 + recommendedProxySettings = true; 356 + extraConfig = '' 357 + client_max_body_size 50000M; 358 + proxy_read_timeout 600s; 359 + proxy_send_timeout 600s; 360 + send_timeout 600s; 361 + ''; 362 + }; 341 363 }; 342 364 virtualHosts."img.ngp.computer" = { 343 365 forceSSL = true;