-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.justfile
28 lines (21 loc) · 872 Bytes
/
.justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set fallback := true
_targets:
@just --list --unsorted --list-heading $'Available targets:\n' --list-prefix " "
# applies the latest nix-darwin configuration
@switch:
darwin-rebuild switch --flake . --fallback --option eval-cache false
# removes derivations from older nix-darwin generations
@gc:
sudo nix-collect-garbage --delete-old
# updates the top-level flake lock file
@update:
nix flake update --commit-lock-file --commit-lockfile-summary "update Nix flake inputs"
# prints repo statistics
@stats:
tokei
# lists fingerprints of all SSH keys the 1Password SSH agent can access
@ssh-keys:
SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock ssh-add -l
# fixes line separators from CRLF to LF for all Obsidian community plugins and themes
@fix-line-separators:
fd '.+' .obsidian/{plugins,themes} --exec dos2unix {} \;