switch to use immich-go toolkit
This commit is contained in:
parent
cd186314cc
commit
beaeecc5f2
9 changed files with 37 additions and 62 deletions
|
|
@ -22,7 +22,6 @@
|
|||
Credentials.enable = true;
|
||||
Documents.enable = true;
|
||||
Media.enable = true;
|
||||
Consume.enable = true;
|
||||
Archive.enable = true;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@
|
|||
|
||||
screencapture = {
|
||||
disable-shadow = true;
|
||||
location = "~/Consume/dcim";
|
||||
location = "~/Downloads";
|
||||
type = "png";
|
||||
show-thumbnail = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -17,8 +17,7 @@ in
|
|||
|
||||
volumes = [
|
||||
"/var/lib/immich/config:/config"
|
||||
"/var/lib/immich/photos:/photos"
|
||||
"/mnt/storage/DCIM:/library:ro"
|
||||
"/mnt/storage/photos:/photos"
|
||||
"${immichConfigFile}:/config/immich.json:ro"
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
../home-default.nix
|
||||
../../../modules/syncthing.nix
|
||||
../../../modules/media/tool.nix
|
||||
../../../modules/schedule.nix
|
||||
];
|
||||
|
||||
syncthing-custom.folders = {
|
||||
|
|
@ -13,16 +12,6 @@
|
|||
Documents = { enable = true; maxAgeDays = 30; };
|
||||
Media = { enable = true; maxAgeDays = 7; };
|
||||
Archive = { enable = true; maxAgeDays = 30; };
|
||||
Consume = { enable = true; maxAgeDays = 7; };
|
||||
};
|
||||
|
||||
services.scheduled-commands.dcim-consume = {
|
||||
enable = true;
|
||||
description = "Move files in dcim consume folder to DCIM";
|
||||
interval = "*-*-* *:00/15:00";
|
||||
commands = [
|
||||
"photo-move -d /home/yanlin/Consume/dcim /mnt/storage/DCIM"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,17 @@
|
|||
};
|
||||
};
|
||||
|
||||
photo = {
|
||||
rule = "Host(`photo.home.yanlincs.com`)";
|
||||
service = "photo";
|
||||
tls = {
|
||||
certResolver = "cloudflare";
|
||||
domains = [{
|
||||
main = "*.home.yanlincs.com";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
services = {
|
||||
|
|
@ -39,6 +50,15 @@
|
|||
};
|
||||
};
|
||||
|
||||
photo = {
|
||||
loadBalancer = {
|
||||
serversTransport = "longTimeout";
|
||||
servers = [{
|
||||
url = "http://127.0.0.1:8080";
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -144,7 +144,6 @@
|
|||
};
|
||||
|
||||
services.samba-custom.shares = {
|
||||
DCIM = "/mnt/storage/DCIM";
|
||||
Downloads = "/home/yanlin/Downloads";
|
||||
};
|
||||
|
||||
|
|
@ -153,7 +152,7 @@
|
|||
enable = true;
|
||||
repositoryUrl = "ssh://helsinki-box/./nfss";
|
||||
backupPaths = [
|
||||
"/mnt/storage/DCIM"
|
||||
"/mnt/storage/photos/library"
|
||||
];
|
||||
backupFrequency = "*-*-* 01:00:00";
|
||||
retention = {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
Documents = { enable = true; maxAgeDays = 30; };
|
||||
Media = { enable = true; maxAgeDays = 7; };
|
||||
Archive = { enable = true; maxAgeDays = 30; };
|
||||
Consume = { enable = true; maxAgeDays = 7; };
|
||||
};
|
||||
|
||||
services.scheduled-commands.aicloud-backup = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue