No description
Find a file
2026-05-01 19:52:22 +02:00
.gitignore add gitignore 2026-05-01 18:21:37 +02:00
check_diskspace.sh add optional bearer token auth support for ping endpoint 2026-05-01 19:08:49 +02:00
diskspace_monitor.nix handle systemd env escaping for ping payload 2026-05-01 19:52:22 +02:00
flake.lock add nix flake and module for building a systemd service out of this script 2026-05-01 18:22:53 +02:00
flake.nix fix nix dependencies 2026-05-01 19:32:58 +02:00
README.md add readme 2026-05-01 19:18:18 +02:00

diskspace-monitor

Checks that configured filesystems are within capacity thresholds. Optionally pings an endpoint on success.

NixOS module options

services.diskspace-monitor

Option Type Default Description
enable bool Enable the service
package package Package providing check_diskspace.sh
settings.filesystems list [] Filesystems to monitor (see below)
settings.pingEndpoint str or null null HTTP endpoint to ping on success
settings.pingAuthTokenFile str or null null Absolute path to file containing bearer token
settings.pingPayload str or null null JSON payload for the ping request
timer.enable bool true Enable the systemd timer
timer.onCalendar str "hourly" systemd OnCalendar expression

Each entry in settings.filesystems:

Option Type Description
filesystem str Device path (e.g. /dev/sda1)
maxCapacityPerc int Max acceptable usage percentage