23 lines
424 B
Nix
23 lines
424 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
systemd.services.nextcloud = {
|
|
enable = true;
|
|
description = "Nextcloud worker.";
|
|
serviceConfig = {
|
|
Type = "oneshot";
|
|
ExecStart = "/root/app/bin/home/nextcloud";
|
|
};
|
|
wantedBy = [ "multi-user.target" ];
|
|
};
|
|
|
|
systemd.timers.nextcloud = {
|
|
timerConfig = {
|
|
OnCalendar = "hourly";
|
|
Persistent = false;
|
|
Unit = "nextcloud.service";
|
|
};
|
|
wantedBy = [ "timers.target" ];
|
|
};
|
|
}
|