add cronjob

This commit is contained in:
Kopatz
2024-05-16 12:17:41 +02:00
parent 44da6611c0
commit f26ad1f973
5 changed files with 25 additions and 0 deletions

19
modules/services/ente.nix Normal file
View File

@@ -0,0 +1,19 @@
{ config, pkgs, lib, inputs, ... }:
with lib;
let
cfg = config.custom.services.ente;
in
{
options.custom.services.ente = {
enable = mkEnableOption "Enables ente";
};
config = lib.mkIf cfg.enable {
services.cron = {
enable = true;
systemCronJobs = [
"0 23 * * * root /data/ente/backup/backup.sh"
"0 23 * * * root /data/ente-public/backup/backup.sh"
];
};
};
}