mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
worked on QML and other minor details
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# 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"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user