update justfile
This commit is contained in:
parent
44e9544616
commit
b106ae96a9
4 changed files with 21 additions and 25 deletions
24
justfile
24
justfile
|
@ -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:
|
||||
|
|
18
nix/flake.lock
generated
18
nix/flake.lock
generated
|
@ -7,11 +7,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1747521943,
|
||||
"narHash": "sha256-GMAJcB8oB9cC+TbYTE7QDfw9fwHZyloxUWnUpHnQRko=",
|
||||
"lastModified": 1748998583,
|
||||
"narHash": "sha256-X8kkfgfqdYa/sqGpMdDkrLytS6mj89PJW+x22+r29Yg=",
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "b9b927dd1f24094b271e8ec5277a672dc4fc860d",
|
||||
"rev": "d46a07214fc25b6313f2ea3ba789cd7ff036aeb2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -80,11 +80,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1747467164,
|
||||
"narHash": "sha256-JBXbjJ0t6T6BbVc9iPVquQI9XSXCGQJD8c8SgnUquus=",
|
||||
"lastModified": 1748856973,
|
||||
"narHash": "sha256-RlTsJUvvr8ErjPBsiwrGbbHYW8XbB/oek0Gi78XdWKg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "3fcbdcfc707e0aa42c541b7743e05820472bdaec",
|
||||
"rev": "e4b09e47ace7d87de083786b404bf232eb6c89d8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -109,11 +109,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1747622321,
|
||||
"narHash": "sha256-W0dYIWgsUu6rvOJRtKLhKskkv0VhQhJYGNIq+gGUc8g=",
|
||||
"lastModified": 1749004659,
|
||||
"narHash": "sha256-zaZrcC5UwHPGkgfnhTPx5sZfSSnUJdvYHhgex10RadQ=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "bd030fd9983f7fddf87be1c64aa3064c8afa24c4",
|
||||
"rev": "c52e346aedfa745564599558a096e88f9a5557f9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
# https://search.nixos.org/packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
keepassxc
|
||||
# keepassxc
|
||||
raycast
|
||||
# modrinth-app
|
||||
rclone
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# https://cobalt.tools/
|
||||
|
||||
# yt-dlp
|
||||
https://github.com/yt-dlp/yt-dlp
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue