From 4874cd01bfae9020b2142a9234689ee7243e09d0 Mon Sep 17 00:00:00 2001 From: RootHost-Stormwind Date: Sun, 1 Nov 2026 01:12:13 +0100 Subject: [PATCH] feat: hourly isp speed test cron (unify-admin) --- cron.nix | 11 +++++++++++ master.nix | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 cron.nix diff --git a/cron.nix b/cron.nix new file mode 100644 index 0000000..a2e5606 --- /dev/null +++ b/cron.nix @@ -0,0 +1,11 @@ +{ config, pkgs, ... }: + +{ + services.cron = { + enable = true; + systemCronJobs = [ + # ISP speed test (unify-admin: scripts/uplink_logger.py), hourly at :05 + "5 * * * * stormwind ${pkgs.python3}/bin/python3 /home/stormwind/isp-speed-test/uplink_logger.py 2>> /home/stormwind/isp-speed-test/uplink_logger.err" + ]; + }; +} diff --git a/master.nix b/master.nix index 9f665ca..0482198 100644 --- a/master.nix +++ b/master.nix @@ -24,7 +24,7 @@ in ./incus.nix ./drives.nix ./prometheus.nix - #./cron.nix + ./cron.nix #./auto-upgrade.nix ];