alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
services flix: create index daily
author
lassulus
date
1 year ago
(Jun 3, 2025, 5:30 AM CEST)
commit
a43a3fef
a43a3fef51d3989e424a77b3286a243a5bf63b1a
parent
cd4bf47f
cd4bf47f7dcfe4498b5de0bbe568a585cc0b8fc6
+6
-4
1 changed file
Expand all
Collapse all
Unified
Split
2configs
services
flix
default.nix
+6
-4
2configs/services/flix/default.nix
View file
Reviewed
···
328
328
pkgs.findutils
329
329
pkgs.inotify-tools
330
330
];
331
331
+
startAt = "daily";
331
332
serviceConfig = {
332
333
Restart = "always";
333
334
ExecStart = pkgs.writers.writeDash "flix-index" ''
334
335
set -efu
336
336
+
index(){
337
337
+
find . -type f > "$DIR"/index.tmp
338
338
+
mv "$DIR"/index.tmp "$DIR"/index
339
339
+
}
335
340
336
341
DIR=/var/download
337
342
cd "$DIR"
338
338
-
while inotifywait -rq -e create -e move -e delete "$DIR"; do
339
339
-
find . -type f > "$DIR"/index.tmp
340
340
-
mv "$DIR"/index.tmp "$DIR"/index
341
341
-
done
343
343
+
index
342
344
'';
343
345
};
344
346
};