mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
38 lines
778 B
Nix
38 lines
778 B
Nix
{ 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/Immich";
|
|
};
|
|
|
|
|
|
services.nginx = {
|
|
virtualHosts = {
|
|
"shots.swarsel.win" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
acmeRoot = null;
|
|
locations = {
|
|
"/" = {
|
|
proxyPass = "http://[::1]:3001";
|
|
extraConfig = ''
|
|
client_max_body_size 0;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|