2024-03-04 00:34:39 +03:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
systemd.services.nextcloud = {
|
|
|
|
enable = true;
|
|
|
|
description = "Nextcloud worker.";
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "oneshot";
|
2024-03-04 12:37:20 +03:00
|
|
|
ExecStart = "/etc/bin/Nextcloud";
|
2024-03-04 00:34:39 +03:00
|
|
|
};
|
|
|
|
path = with pkgs; [
|
|
|
|
bashInteractive
|
|
|
|
docker
|
|
|
|
];
|
|
|
|
# wantedBy = [ "multi-user.target" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.timers.nextcloud = {
|
|
|
|
timerConfig = {
|
|
|
|
OnCalendar = "hourly";
|
|
|
|
Persistent = false;
|
|
|
|
Unit = "nextcloud.service";
|
|
|
|
};
|
|
|
|
wantedBy = [ "timers.target" ];
|
|
|
|
};
|
|
|
|
}
|