Skip to content

penglei/nix-configs

Repository files navigation

my nixos/home-manager flake configurations

  • 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.

update secrets

make sops-update

home-manager tips

home-manager news --flake .

bootstrap tips

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

references

.shell expansion

.macOS NSUserDefaults

.macOS awesome apps

.fonts

.icon font

yabai

# 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

rime/squirrel

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

launchctl bootout gui/$UID ./org.sketchybar.plist

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published