No description
| .gitignore | ||
| check_diskspace.sh | ||
| diskspace_monitor.nix | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
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 |