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

18
nix/flake.lock generated
View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1747521943, "lastModified": 1748998583,
"narHash": "sha256-GMAJcB8oB9cC+TbYTE7QDfw9fwHZyloxUWnUpHnQRko=", "narHash": "sha256-X8kkfgfqdYa/sqGpMdDkrLytS6mj89PJW+x22+r29Yg=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "b9b927dd1f24094b271e8ec5277a672dc4fc860d", "rev": "d46a07214fc25b6313f2ea3ba789cd7ff036aeb2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -80,11 +80,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1747467164, "lastModified": 1748856973,
"narHash": "sha256-JBXbjJ0t6T6BbVc9iPVquQI9XSXCGQJD8c8SgnUquus=", "narHash": "sha256-RlTsJUvvr8ErjPBsiwrGbbHYW8XbB/oek0Gi78XdWKg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3fcbdcfc707e0aa42c541b7743e05820472bdaec", "rev": "e4b09e47ace7d87de083786b404bf232eb6c89d8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -109,11 +109,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1747622321, "lastModified": 1749004659,
"narHash": "sha256-W0dYIWgsUu6rvOJRtKLhKskkv0VhQhJYGNIq+gGUc8g=", "narHash": "sha256-zaZrcC5UwHPGkgfnhTPx5sZfSSnUJdvYHhgex10RadQ=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "bd030fd9983f7fddf87be1c64aa3064c8afa24c4", "rev": "c52e346aedfa745564599558a096e88f9a5557f9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -41,7 +41,7 @@
# https://search.nixos.org/packages # https://search.nixos.org/packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
keepassxc # keepassxc
raycast raycast
# modrinth-app # modrinth-app
rclone rclone

View file

@ -1,3 +1,5 @@
# https://cobalt.tools/
# yt-dlp # yt-dlp
https://github.com/yt-dlp/yt-dlp https://github.com/yt-dlp/yt-dlp