update flakes + create script
This commit is contained in:
parent
bbfc3acc32
commit
afa81c7a17
2 changed files with 59 additions and 66 deletions
18
update.sh
Executable file
18
update.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue