mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 17:58:30 +02:00
feat: update justfile
This commit is contained in:
21
Justfile
21
Justfile
@@ -81,6 +81,19 @@ fmt:
|
|||||||
gcroot:
|
gcroot:
|
||||||
ls -al /nix/var/nix/gcroots/auto/
|
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
|
# NixOS Desktop related commands
|
||||||
@@ -138,12 +151,12 @@ fe mode="default": darwin-set-proxy
|
|||||||
darwin-build "fern" {{mode}};
|
darwin-build "fern" {{mode}};
|
||||||
darwin-switch "fern" {{mode}}
|
darwin-switch "fern" {{mode}}
|
||||||
|
|
||||||
# Reload yabai and skhd(macOS)
|
# Reset launchpad to force it to reindex Applications
|
||||||
[macos]
|
[macos]
|
||||||
[group('desktop')]
|
[group('desktop')]
|
||||||
yabai-reload:
|
reset-launchpad:
|
||||||
launchctl kickstart -k "gui/502/org.nixos.yabai";
|
defaults write com.apple.dock ResetLaunchPad -bool true
|
||||||
launchctl kickstart -k "gui/502/org.nixos.skhd";
|
killall Dock
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user