update justfile

This commit is contained in:
Elijah McMorris 2025-06-03 17:50:47 -07:00
parent 44e9544616
commit b106ae96a9
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
4 changed files with 21 additions and 25 deletions

View file

@ -1,39 +1,33 @@
switch *args='':
switch attic="false":
nix-channel --update
nix flake update --flake ./nix/.
sudo darwin-rebuild switch --verbose --flake ./nix/.
if [ "{{args}}" = "attic" ]; then just attic; fi
if [ "{{attic}}" = "true" ]; then just attic; fi
update *args='':
update attic="false":
nix-channel --update
sudo darwin-rebuild switch --verbose --flake ./nix/.
if [ "{{args}}" = "attic" ]; then just attic; fi
if [ "{{attic}}" = "true" ]; then just attic; fi
clean:
sudo nix-collect-garbage -d -k
cargo clean-all -y ~/Desktop/Stuff/Programing/
rm -r ~/.cache/huggingface/hub/*
rm -r ~/.cache/huggingface/hub/* || true
attic:
#!/usr/bin/env bash
attic cache create mac | true
attic use mac | true
for i in {1..5}; do
attic push mac /run/current-system -j 1 && break || [ $i -eq 5 ] || sleep 5
done
for i in {1..5}; do
attic push mac /nix/store/*/ && break || [ $i -eq 5 ] || sleep 5
for i in {1..10}; do
attic push mac /run/current-system /nix/store/*/ && break || [ $i -eq 5 ] || sleep 5
done
attic-tower:
#!/usr/bin/env bash
attic cache create tower:mac | true
attic use tower:mac | true
for i in {1..5}; do
attic push tower:mac /run/current-system -j 1 && break || [ $i -eq 5 ] || sleep 5
done
for i in {1..5}; do
attic push tower:mac /nix/store/*/ && break || [ $i -eq 5 ] || sleep 5
for i in {1..10}; do
attic push tower:mac /run/current-system /nix/store/*/ && break || [ $i -eq 5 ] || sleep 5
done
install: