Skip to content

Repository files navigation

nix-config

Macos manual steps

Prerequisites

The user account / home map folder must be named ankarhem.

  1. Install Rosetta 2 softwareupdate --install-rosetta --agree-to-license
  2. Install nix using determinate systems. ❗NOT the determinate distribution
  3. Install git xcode-select --install
  4. Add access token to ~/.config/nix/nix.conf. mkdir -p ~/.config/nix && echo "access-tokens = github.com=ghp_*****" > ~/.config/nix/nix.conf
  5. Bootstrap darwin build nix run --extra-experimental-features flakes --extra-experimental-features nix-command nix-darwin -- switch --flake .#mbp
  6. Replace default colemak System Preferences > Keyboard > Input Sources (the layout is installed by the flake, log out and back in for it to show up)
  7. Change shell with chsh -s /run/current-system/sw/bin/fish

Important

  • Open vicinae and grant accessibility permission via System Preferences > Privacy & Security > Accessibility, required for the global shortcut, paste and snippets
  • Make firefox default browser System Preferences > General > Default Web Browser
  • Fix yubikey
    1. Add ssh-keys manually from 1password
    2. Fix permission on private key chmod 400 ~/.ssh/id_ed25519_sk
    3. Connect key and run gpg-connect-agent "scd serialno" "learn --force" /bye

Not super important

  • Open maccy and enable autostart
  • Open mos settings and enable autostart
  • Add accounts System Preferences > Internet Accounts
    • Rename email acccounts in Mail app: Settings > Accounts
    • Filter accounts / calendar with focus modes
  • Open firefox and login to sync
  • Open slack and login using jakob.ankarhem@norce.io, select workspaces
  • Add home folder to finder sidebar in settings
  • Login to Github gh auth login
  • Clone all norce repos mkdir -p ~/repos && cd ~/repos && clone_org NorceTech

Finding custom settings

Accept tailscale subnet routing

  • sudo tailscale set --accept-routes

Diffing to find settings

  1. Generate starting point defaults read > before
  2. Make changes
  3. Generate current defaults read > after
  4. Diff them to find settings diff before after

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages