feat: Update gitea docker image and add systemd timer for nextcloudcmd
Some checks failed
Flake checker / Build Nix targets (push) Failing after 1m14s

This commit is contained in:
uttarayan21
2025-08-15 04:56:15 +05:30
parent c959a3aea8
commit f2bcb15c3a
3 changed files with 26 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
{
pkgs,
config,
lib,
...
}: {
@@ -24,9 +23,23 @@
Description = "Nextcloud Client";
};
Service = {
Type = "oneshot";
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloudcmd -n /home/deck/Nextcloud https://cloud.darksailor.dev";
Restart = "on-failure";
RestartSec = "5s";
};
};
};
systemd.user.timers = {
nextcloudcmd = {
Unit = {
Description = "Run Nextcloud Client every 5 minutes";
};
Timer = {
OnCalendar = "*:0/5";
Persistent = true;
};
Install = {
WantedBy = ["timers.target"];
};
};
};