nix/host/home/PhotosProcess.nix

25 lines
495 B
Nix
Raw Normal View History

{ pkgs, ... }: {
systemd.services.photos_process = {
enable = true;
description = "Process uploaded photos.";
serviceConfig = {
Type = "oneshot";
2024-03-04 12:37:20 +03:00
ExecStart = "/etc/bin/PhotosProcess";
};
path = with pkgs; [
bashInteractive
docker
];
# wantedBy = [ "multi-user.target" ];
};
systemd.timers.photos_process = {
timerConfig = {
OnCalendar = "daily";
Persistent = true;
Unit = "photos_process.service";
};
wantedBy = [ "timers.target" ];
};
}