Files
nixos/modules/scripts/QSnotifycache.nix
T
2026-04-13 15:32:01 +02:00

15 lines
403 B
Nix

# creates and maintains cache file for the notification history
{writeShellApplication, ...}:
writeShellApplication {
name = "QS-notifycache";
runtimeInputs = [
];
text = ''
CACHE="$HOME/.cache/notify_history"
# Create or erase existing cache
mkdir -p "$(dirname "$CACHE")"
: > "$CACHE" # truncate file
echo "Notification history initialized at $(date)" >> "$CACHE"
'';
}