setup immich

This commit is contained in:
♥ Minnie ♥ 2024-09-30 09:22:07 +08:00
parent 4fba5870aa
commit a98bb5989d
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
5 changed files with 74 additions and 0 deletions

View file

@ -23,6 +23,8 @@
jellyfin-media-player
# Misc
firefox
# Unstable
unstable.immich-go
];
};
}

View file

@ -0,0 +1,7 @@
age-encryption.org/v1
-> ssh-ed25519 KTkZog E+C2+Ayu6ytwYMXaK751u27olRZMRXKWoqkhNNmKsXA
kb2Y5sEH+WzoJEaaC1n4eTrVM3MuTiaYy4eH/ufDcXM
-> -3r7W;-grease X-W i?RxdY> oBU
JyVJyP1apGU2dpk
--- UidwwQcXd3p47fU89xxRLp1eppXtTIbJySxdQc1flh8
©ÃÂÍ\+SœÛµ=¨I á¹fÑŠÈc"/ÇÍßhîrP<>öË<C38B>æC¹PÍ üí÷<C3AD>ù

View file

@ -24,6 +24,7 @@
./services/crowdsec
./services/forgejo
./services/grafana
./services/immich
./services/lighttpd
./services/minecraft
./services/mpd

View file

@ -0,0 +1,55 @@
{
inputs,
pkgs,
config,
...
}: {
imports = [
"${inputs.nixpkgs-unstable}/nixos/modules/services/web-apps/immich.nix"
];
age.secrets.immich = {
rekeyFile = ./secrets.age;
owner = "immich";
group = "immich";
};
services.immich = {
enable = true;
package = pkgs.unstable.immich;
port = 5489;
host = "0.0.0.0";
openFirewall = true;
mediaLocation = "/srv/services/immich/library";
secretsFile = config.age.secrets.immich.path;
database = {
enable = true;
user = "immich";
name = "immich";
};
environment = {
TZ = "Australia/Perth";
DB_USERNAME = "immich";
DB_DATABASE_NAME = "immich";
};
};
services.traefik.dynamicConfigOptions.http.routers = {
immich = {
rule = "Host(`photos.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"internal"
];
service = "immich";
};
};
services.traefik.dynamicConfigOptions.http.services = {
immich.loadBalancer.servers = [
{url = "http://127.0.0.1:${toString config.services.immich.port}";}
];
};
}

View file

@ -0,0 +1,9 @@
age-encryption.org/v1
-> piv-p256 hdSnGw Ave/yX17ylsK6RI5ei/oxD58h8nzXisgLiNvs8p7PKd4
eUz/WZTS3nQ8IyeBZd2/zzW4hjRexuYUuGAiLRFamb4
-> C[:7-grease
tVpdl3Ch
--- wTWoOAjmo0FL1kNZ/6QIMSwA4IV6XQkZLbWobJjnlPY
#º-Øth­„î ("ÎI
t-FmšÔƒK•cÿ×F ´SPdBÃ5
H%LOˆÅØ=½PÌ ÿ