Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

528 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MacOS Dotfiles

Full Setup

Terminal Setup

Installation (Using nix)

Prerequisites:

  • Xcode Command Line Tools
xcode-select --install
  • Nix
curl --proto '=https' --tlsv1.2 -sSfL https://nixos.org/nix/install | sh -s -- --daemon

Clone the repo into a dir called dotfiles:

git clone https://github.com/Yahddyyp/MacOS-Dotfiles.git ~/dotfiles

Note

git username/email are hardcoded in nix/modules/git.nix (edit them there).

Set up /etc/nix-darwin:

sudo ln -s "$HOME/dotfiles/nix" /etc/nix-darwin

Apply the configuration First build only:

nix run nix-darwin -- switch --flake /etc/nix-darwin#$(whoami) --impure

Every build after that is the same:

sudo darwin-rebuild switch --flake /etc/nix-darwin#$(whoami) --impure

Post-Install

After installation, run these:

  1. Tmux plugins — Open tmux and press prefix + I (Ctrl+A, then I)

  2. Spicetify — Open Spotify once, then run spicetify apply

  3. Disable SIP for yabai (Apple Silicon only):

    1. Reboot into recovery mode (hold power button while restarting)

    2. Open terminal and run:

      csrutil enable --without fs --without debug --without nvram
    3. Enable non-Apple-signed arm64e binaries, then reboot:

      sudo nvram boot-args=-arm64e_preview_abi
  4. Load the scripting addon:

    sudo yabai --load-sa
  5. Start services:

    source ~/.zshrc
    start-yabai

First Login

  • Authenticate gh (git uses it as the credential helper):

    gh auth login
  • Restore your GPG key and pass store:

    gpg --import <secret-key.asc>
    gpg --quick-set-ownertrust <KEYID> ultimate

Inspirations

Made with 💜 by Yahddyyp

About

Just some dotfiles I use while using macOS

Topics

Resources

Stars

103 stars

Watchers

0 watching

Forks

Contributors

Languages