Skip to content

👾 My computer config

Notifications You must be signed in to change notification settings

niklasravnsborg/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 "[email protected]"
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