Make sure you have the Command Line Tools (CLT) installed, which are needed for cloning this repository with Git and for Homebrew.
xcode-select --installThis repository contains submodules. You can initialize them when cloning by running:
git clone --recurse-submodules https://github.com/AndreasNasman/.config.gitAlternatively, you can clone the repository normally and initialize the
submodules by running the setup/init script described below.
To initialize the setup, run the following script:
setup/initThis script installs Homebrew packages (dependencies) and initializes as many programs as possible from the repository. It uses Bash since macOS does not include fish out of the box.
To update relevant files when the setup changes, run the following script:
setup/updateThe following section serves as a reminder of what to set up manually.
- Navigate to about:config.
- Set
toolkit.legacyUserProfileCustomizations.stylesheetstotrue. - Restart Firefox.
We need to set up SSH commit signing manually since we should exclude signing
keys from version control. git/config contains an include-reference to a
config.local file that contains the signing key. Follow these steps to add the
signing key:
- Open the desktop version 1Password.
- Find the signing key item.
- Click the "More options" menu (three dots) and choose "Configure Commit Signing...".
- Copy the
user.signingkeypart and add it to thegit/config.localfile.
- Open Surfingkeys settings.
- Tick the
Advanced modecheckbox. - Paste the content below in the
Load settings from:text field.
https://raw.githubusercontent.com/AndreasNasman/.config/refs/heads/main/surfingkeys/theme.js
After a macOS system update, your Nix keyboard configurations might stop working.
To remedy this, run this command (source) and make note of the path:
nix-store --query --tree /run/current-system | grep --only-matching --extended-regexp '/nix/store/.+-activate-system-start' | xargs nix-store --query --requisites | grep bashThen, open Input Monitoring in System Settings and add the Bash command to the allowed applications.
If you run darwin-rebuild and restart your system, keyboard changes will take
effect! 🎉
I have based my Neovim configuration on kickstart.nvim, hash 3338d39.