nix/host/home/Nextcloud.nix
2024-03-04 03:04:57 +03:00

25 lines
481 B
Nix

{ pkgs, ... }: {
systemd.services.nextcloud = {
enable = true;
description = "Nextcloud worker.";
serviceConfig = {
Type = "oneshot";
ExecStart = "/root/app/bin/home/Nextcloud";
};
path = with pkgs; [
bashInteractive
docker
];
# wantedBy = [ "multi-user.target" ];
};
systemd.timers.nextcloud = {
timerConfig = {
OnCalendar = "hourly";
Persistent = false;
Unit = "nextcloud.service";
};
wantedBy = [ "timers.target" ];
};
}