Compare commits

..

No commits in common. "37df6b7a66d2d23cc7b2c209dc4e0842dc0ed114" and "5b5612390d2ac9d79e24ba089f274690166846cd" have entirely different histories.

3 changed files with 0 additions and 77 deletions

View file

@ -62,11 +62,6 @@ in {
privatePort = 8082; privatePort = 8082;
}; };
immich = {
enable = true;
port = 8089;
};
jellyfin = { jellyfin = {
enable = true; enable = true;
}; };

View file

@ -4,7 +4,6 @@
./fail2ban.nix ./fail2ban.nix
./fava.nix ./fava.nix
./gitea ./gitea
./immich.nix
./jellyfin.nix ./jellyfin.nix
./lohr.nix ./lohr.nix
./matrix.nix ./matrix.nix

View file

@ -1,71 +0,0 @@
{
config,
lib,
pkgs,
...
}: let
inherit
(lib)
mkEnableOption
mkIf
mkOption
;
cfg = config.my.services.immich;
my = config.my;
domain = config.networking.domain;
hostname = config.networking.hostName;
fqdn = "${hostname}.${domain}";
in {
options.my.services.immich = let
inherit (lib) types;
in {
enable = mkEnableOption "Immich config";
home = mkOption {
type = types.str;
default = "/var/lib/immich";
example = "/var/lib/immich";
description = "Home for the immich service, where data will be stored";
};
port = mkOption {
type = types.port;
example = 8080;
description = "Internal port for Immich webapp";
};
};
config = mkIf cfg.enable {
users.users.immich = {
isSystemUser = true;
home = cfg.home;
createHome = true;
group = "immich";
};
users.groups.immich = {};
services.nginx.virtualHosts = {
"immich.${domain}" = {
forceSSL = true;
useACMEHost = fqdn;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString cfg.port}";
proxyWebsockets = true;
};
extraConfig = ''
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
client_max_body_size 100m;
access_log syslog:server=unix:/dev/log,tag=immich;
'';
};
};
security.acme.certs.${fqdn}.extraDomainNames = ["immich.${domain}"];
};
}