- darwin: home-manager only, I don't employ nix-darwin.
- aarch64, x86_64 vm(cloud and local): nixos with embeded home-manager.
- legacy linux distribution like ubuntu: home-manager only.
make sops-update
home-manager news --flake .
The newly installed NixOS does not come with vim by default, I'm not used to the nano editor. Use the following command to temporarily use vim:
$ nix --extra-experimental-features nix-command --extra-experimental-features flakes shell nixpkgs#vim
$ make pin-registry
$ nix shell nixpkgs#git nixpkgs#home-manager
$ home-manager switch --flake .
$ #or
$ nix run nixpkgs#home-manager switch -- --flake .
$ sudo nixos-rebuild switch --flake .#NAME
.shell expansion
- https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html
- https://zsh.sourceforge.io/Doc/Release/Expansion.html
- https://zsh.sourceforge.io/Doc/Release/Expansion.html#Modifiers
- https://zsh.sourceforge.io/Doc/Release/Expansion.html#Parameter-Expansion
- https://stackoverflow.com/questions/3435355/remove-entry-from-array
- https://unix.stackexchange.com/questions/411304/how-do-i-check-whether-a-zsh-array-contains-a-given-value
.macOS NSUserDefaults
.macOS awesome apps
.fonts
.icon font
# launchctl load -F ~/Library/LaunchAgents/org.nix-community.home.yabai.plist
# launchctl unload -F ~/Library/LaunchAgents/org.nix-community.home.yabai.plist
# launchctl kickstart -k gui/$(id -u)/org.nix-community.home.yabai
based on: github.com/iDvel/rime-ice
grammer model: https://github.com/lotem/rime-octagram-data/tree/hans
log location:
- $TMPDIR/rime.squirrel.INFO
- $TMPDIR/rime.squirrel.ERROR
force deploy :
- run home-manager to link rime configuration again
- clean cache
rm -rf ~/Library/Rime/build
- Do squirrel Deploy (click in menu)
Shift+space as switcher key: rime/squirrel#113
installation.yaml should be writable after upgrading squirrel.
launchctl bootout gui/$UID ./org.sketchybar.plist