-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
38 lines (27 loc) · 972 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
29
30
31
32
33
34
35
36
37
38
deploy: switch-system switch-home
switch-system:
sudo nixos-rebuild switch --flake .
switch-home:
home-manager --flake . switch
add-xiaohe-word:
nvim ~/nix-config/overlays/fcitx5/rime-data-flypy/share/rime-data/flypy_user.txt
just switch-home
git add ~/nix-config/overlays/fcitx5/rime-data-flypy/share/rime-data/flypy_user.txt
# kitty htop & # kill fcitx5 manually lol.
git commit -m "feat(fcitx5): add custom word[by snippet]"
ax: add-xiaohe-word
update:
nix flake update
# usage: just update-flake i=nixpkgs
update-flake-specific:
nix flake lock --update-input $(i)
history:
nix profile history --profile /nix/var/nix/profiles/system
gc: clean-profile clean-package
clean-profile:
sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 7d
clean-package:
sudo nix store gc --debug
sudo nix-collect-garbage --delete-old
rclone:
rclone sync ~/archive-zipped onedrive:/code-archive --transfers 1 --progress