Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.01 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.01 KB

Niks dotfiles

This is my personal dotfiles repository. It is managed with Nix and Nix-darwin. I use these dotfiles on macOS and on NixOS. But this guide is only for macOS.

Setup

  • Install Nix
  • Install Homebrew
  • Clone this repo to ~/dotfiles
  • Run nix run nix-darwin -- switch --flake ~/dotfiles
  • Import uBlock setting via the import features in browser

System software update

softwareupdate -ia

System cleanup

./cleanup.sh

SSH Setup

Generate new keyfile: ssh-keygen -t ed25519 -C "niklasravnsborg@gmail.com"
Change password: ssh-keygen -p -f ~/.ssh/id_ed25519
Add password to keychain: ssh-add --apple-use-keychain ~/.ssh/id_ed25519

Connect with public network

  • Deactivate NextDNS: nextdns deactivate
  • Connect to network
  • Clear DNS cache: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  • Reactivate NextDNS: nextdns activate