/nix-macbook

My Macbook's nix-darwin configuration

Primary LanguageNix

Nix Macbook configuration

Getting started

./nix-installer-aarch64-darwin install macos --case-sensitive
  • /run/current-system/sw/bin/nix run github:LnL7/nix-darwin -- switch --flake .#macbook
    • builder vm will fail unless iteratively built up, check comments in /hosts/macbook/builders
  • Authenticate:
    • 1Password
    • Google Drive
    • Firefox
    • Discord
    • Slack
    • Telegram
    • Whatsapp
    • Messenger
    • Spotify
    • Private Internet Access
  • rclone config for gdrive
  • Download + install Paragon extFS
    • authenticate licence
  • Start once + start on login:
    • iBar
    • ZeroTier
      • join network
    • Arq
      • configure licence
      • configure /Users/rcambrj with ArqFileSelections.json
    • Choosy
      • configure licence
      • set default browser
      • configure browsers
      • do not expand URLs
      • remove rule "prompt from running browsers"
    • Lunar
      • configure licence
      • disable Check for network light sensors periodically
    • Rectangle
    • Hot
      • Ignore sensors: Tf06 Tf16 Tf26 Tf36 Tf46
    • Postman Agent
    • Music Decoy
    • Battery
      • battery maintain 60
    • Mac Fan Control
  • Remove all notification panel widgets
  • Set Automatically dim brightness off
  • Set True Tone off

...make changes...

  • dwu (darwin update)

Tips

Get all MacOS defaults

# https://apple.stackexchange.com/questions/195244/concise-compact-list-of-all-defaults-currently-configured-and-their-values

for i in `defaults domains | tr ',' '\n'`; do echo "********* READING DEFAULT DOMAIN $i **********"; echo; defaults read $i; done > defaults.txt

Edit a secret

nix run github:ryantm/agenix -- -e secrets/foo.age