mirror of
https://github.com/kmein/niveum
synced 2026-03-20 12:01:06 +01:00
feat: fix secrets permissions, move ./packages to flake outputs
This commit is contained in:
13
packages/nix-index-update.nix
Normal file
13
packages/nix-index-update.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
writers,
|
||||
wget,
|
||||
system,
|
||||
}:
|
||||
writers.writeDashBin "nix-index-update" ''
|
||||
filename="index-${system}"
|
||||
mkdir -p ~/.cache/nix-index
|
||||
cd ~/.cache/nix-index
|
||||
# -N will only download a new version if there is an update.
|
||||
${wget}/bin/wget -q -N https://github.com/Mic92/nix-index-database/releases/latest/download/$filename
|
||||
ln -f $filename files
|
||||
''
|
||||
Reference in New Issue
Block a user