setup immich
This commit is contained in:
parent
4fba5870aa
commit
a98bb5989d
|
@ -23,6 +23,8 @@
|
|||
jellyfin-media-player
|
||||
# Misc
|
||||
firefox
|
||||
# Unstable
|
||||
unstable.immich-go
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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Í5Óüí÷<C3AD>ù
|
|
@ -24,6 +24,7 @@
|
|||
./services/crowdsec
|
||||
./services/forgejo
|
||||
./services/grafana
|
||||
./services/immich
|
||||
./services/lighttpd
|
||||
./services/minecraft
|
||||
./services/mpd
|
||||
|
|
55
nixos/viridian/services/immich/default.nix
Normal file
55
nixos/viridian/services/immich/default.nix
Normal 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}";}
|
||||
];
|
||||
};
|
||||
}
|
9
nixos/viridian/services/immich/secrets.age
Normal file
9
nixos/viridian/services/immich/secrets.age
Normal file
|
@ -0,0 +1,9 @@
|
|||
age-encryption.org/v1
|
||||
-> piv-p256 hdSnGw Ave/yX17ylsK6RI5ei/oxD58h8nzXisgLiNvs8p7PKd4
|
||||
eUz/WZTS3nQ8IyeBZd2/zzW4hjRexuYUuGAiLRFamb4
|
||||
-> C[:7-grease
|
||||
tVpdl3Ch
|
||||
--- wTWoOAjmo0FL1kNZ/6QIMSwA4IV6XQkZLbWobJjnlPY
|
||||
HÚ’#º-Øth„î("ÎI
|
||||
t-FmšÔƒK•cÿ×F´SPdBÃ5–
|
||||
H%LOˆÅØ=½P‚Ìÿ
|
Loading…
Reference in a new issue