This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

services flix: create index daily

+6 -4
+6 -4
2configs/services/flix/default.nix
··· 328 328 pkgs.findutils 329 329 pkgs.inotify-tools 330 330 ]; 331 + startAt = "daily"; 331 332 serviceConfig = { 332 333 Restart = "always"; 333 334 ExecStart = pkgs.writers.writeDash "flix-index" '' 334 335 set -efu 336 + index(){ 337 + find . -type f > "$DIR"/index.tmp 338 + mv "$DIR"/index.tmp "$DIR"/index 339 + } 335 340 336 341 DIR=/var/download 337 342 cd "$DIR" 338 - while inotifywait -rq -e create -e move -e delete "$DIR"; do 339 - find . -type f > "$DIR"/index.tmp 340 - mv "$DIR"/index.tmp "$DIR"/index 341 - done 343 + index 342 344 ''; 343 345 }; 344 346 };