feat: init immich on winters

This commit is contained in:
Swarsel 2024-10-04 17:03:09 +02:00
parent d95c500065
commit 9fd7c447d5
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
9 changed files with 103 additions and 38 deletions

View file

@ -0,0 +1,39 @@
{ pkgs, lib, config, ... }:
{
config = lib.mkIf config.swarselsystems.server.immich {
users.users.immich = {
extraGroups = [ "users" ];
};
# sops.secrets.nextcloudadminpass = { owner = "nextcloud"; };
services.immich = {
enable = true;
port = 3001
openFirewall = true;
mediaLocation = "/Vault/Eternor/Bilder";
home = "/Vault/apps/nextcloud";
};
services.nginx = {
virtualHosts = {
"shots.swarsel.win" = {
enableACME = true;
forceSSL = true;
acmeRoot = null;
locations = {
"/" = {
proxyPass = "http://192.168.1.2:3001";
extraConfig = ''
client_max_body_size 0;
'';
};
};
};
};
};
};
}