move the photo-move schedule to nfss
This commit is contained in:
parent
aa9bd8b27e
commit
6c915b5a09
3 changed files with 12 additions and 11 deletions
|
|
@ -20,7 +20,7 @@ in
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/lib/immich/config:/config"
|
"/var/lib/immich/config:/config"
|
||||||
"/var/lib/immich/int-lib:/photos"
|
"/var/lib/immich/int-lib:/photos"
|
||||||
# "/mnt/essd/DCIM:/ext-lib:ro"
|
"/mnt/essd/DCIM:/ext-lib:ro"
|
||||||
"${immichConfigFile}:/config/immich.json:ro"
|
"${immichConfigFile}:/config/immich.json:ro"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
../home-default.nix
|
../home-default.nix
|
||||||
../../../modules/syncthing.nix
|
../../../modules/syncthing.nix
|
||||||
../../../modules/media/tool.nix
|
../../../modules/media/tool.nix
|
||||||
|
../../../modules/schedule.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
syncthing-custom.folders = {
|
syncthing-custom.folders = {
|
||||||
|
|
@ -13,4 +14,14 @@
|
||||||
Media.maxAgeDays = 7;
|
Media.maxAgeDays = 7;
|
||||||
Archive.maxAgeDays = 30;
|
Archive.maxAgeDays = 30;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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/Documents/consume/dcim /mnt/essd/DCIM"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@
|
||||||
../home-default.nix
|
../home-default.nix
|
||||||
../../../modules/syncthing.nix
|
../../../modules/syncthing.nix
|
||||||
../../../modules/media/tool.nix
|
../../../modules/media/tool.nix
|
||||||
../../../modules/schedule.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
syncthing-custom.folders = {
|
syncthing-custom.folders = {
|
||||||
|
|
@ -15,13 +14,4 @@
|
||||||
Archive.maxAgeDays = 30;
|
Archive.maxAgeDays = 30;
|
||||||
};
|
};
|
||||||
|
|
||||||
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/Documents/consume/dcim /home/yanlin/DCIM"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue