nix/host/home/Nextcloud.nix

28 lines
530 B
Nix
Raw Normal View History

{ pkgs, ... }: {
systemd.services.nextcloud = {
enable = true;
description = "Nextcloud worker.";
serviceConfig = {
Type = "oneshot";
ExecStart = ./bin/Nextcloud;
};
path = with pkgs; [
bashInteractive
docker
];
2024-03-24 16:04:07 +03:00
environment = {
BASH_PATH = ../../module/common/bash;
};
# wantedBy = [ "multi-user.target" ];
};
systemd.timers.nextcloud = {
timerConfig = {
OnCalendar = "hourly";
Persistent = false;
Unit = "nextcloud.service";
};
wantedBy = [ "timers.target" ];
};
}