feat: immich
This commit is contained in:
parent
bd95960c84
commit
955b9f4cfb
35
hosts/architect/immich.nix
Normal file
35
hosts/architect/immich.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
domain = "photos.giugl.io";
|
||||
in
|
||||
{
|
||||
disabledModules = [ "services/web-apps/immich.nix" ];
|
||||
services = {
|
||||
immich = {
|
||||
enable = true;
|
||||
package = pkgs.unstablePkgs.immich;
|
||||
accelerationDevices = null;
|
||||
# settings.server.externalDomain = "https://${domain}";
|
||||
};
|
||||
};
|
||||
|
||||
architect.vhost.${domain} = {
|
||||
dnsInterfaces = [ "tailscale" "lan" ];
|
||||
locations."/" = {
|
||||
host = "[::1]";
|
||||
port = config.services.immich.port;
|
||||
allowLan = true;
|
||||
allowWAN = true;
|
||||
allow = [ config.architect.networks."tailscale".net ];
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
# allow large file uploads
|
||||
client_max_body_size 50000M;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
users.users.immich.extraGroups = [ "video" "render" "media" "nextcloud" ];
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user