# Configuration for MacOS * Installation Install - [[https://brew.sh/][Homebrew]] - [[https://lix.systems/install/][Lix]] and use ~nix-darwin~ to install the system flake #+begin_src sh nix run nix-darwin -- switch --flake ~/.config/nix-darwin #+end_src To update the system after flake changes, #+begin_src sh darwin-rebuild switch --flake . #+end_src Optionally, run #+begin_src nix-collect-garbage --delete-old #+end_src * Desktop Environment - [[https://github.com/koekeishiya/yabai][yabai]]: Window manager, see [[https://github.com/koekeishiya/yabai/wiki][setup guide]] To avoid space rearranging automatically, go to /System Settings - Desktop & Dock - Mission Control - Automatically rearrange Spaces .../ and uncheck. - [[https://github.com/koekeishiya/skhd][skhd]]: Hotkey manager See [[https://github.com/koekeishiya/skhd/issues/1][this guide]] for keybindings ~fn~ key is used as the workspace leader key and ~cmd~ key is used as window leader key. The reason is that ~fn~ and arrow key combinations disable arrow keys for other applications. - Sketchybar: Status Bar