update flakes + create script

This commit is contained in:
atagen 2023-12-14 11:32:58 +11:00
parent bbfc3acc32
commit afa81c7a17
2 changed files with 59 additions and 66 deletions

18
update.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
descend() {
for f in $1/*; do
if [[ -d $f ]]; then
echo descending into $f...
descend $f
fi
done
if [[ -d $1 ]]; then
echo updating $1...
nix flake update
sleep 5 # prevent api thrashing
fi
}
descend flakes
nix flake update