Skip to content

Commit

Permalink
feat: update justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Nov 12, 2024
1 parent 1a8d211 commit 89b790d
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ fmt:
gcroot:
ls -al /nix/var/nix/gcroots/auto/

# Verify all the store entries
# Nix Store can contains corrupted entries if the nix store object has been modified unexpectedly.
# This command will verify all the store entries,
# and we need to fix the corrupted entries manually via `sudo nix store delete <store-path-1> <store-path-2> ...`
[group('nix')]
verify-store:
nix store verify --all

# Repair Nix Store Objects
[group('nix')]
repair-store *paths:
nix store repair {{paths}}

############################################################################
#
# NixOS Desktop related commands
Expand Down Expand Up @@ -138,12 +151,12 @@ fe mode="default": darwin-set-proxy
darwin-build "fern" {{mode}};
darwin-switch "fern" {{mode}}

# Reload yabai and skhd(macOS)
# Reset launchpad to force it to reindex Applications
[macos]
[group('desktop')]
yabai-reload:
launchctl kickstart -k "gui/502/org.nixos.yabai";
launchctl kickstart -k "gui/502/org.nixos.skhd";
reset-launchpad:
defaults write com.apple.dock ResetLaunchPad -bool true
killall Dock

############################################################################
#
Expand Down

0 comments on commit 89b790d

Please sign in to comment.