aldo's personal macos nix config.
download and install nix
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install)
download and install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
create config dir
mkdir ~/.config
clone repo
cd ~/.config
git clone [email protected]:aldosch/nix.git
may require xcode command line tools to be installed via popup dialogue. could be simpler to download as .zip file.
- repo should be cloned to
~/.config/nix
- commands should be run from here too.
- replace
min
with actual hostname
nix build .#darwinConfigurations.min.system --extra-experimental-features 'nix-command flakes'
sudo -E ./result/sw/bin/darwin-rebuild switch --flake .#min
nix-collect-garbage -d
grep /run/current-system/sw/bin/fish /etc/shells || echo /run/current-system/sw/bin/fish | sudo tee -a /etc/shells
chsh -s /run/current-system/sw/bin/fish
touch ~/.hushlogin
fnm use 24
fnm default 24
- finder
- edit finder toolbar
cmd+j
"Calculate all sizes"- show all filenames
- search current folder by default
- new windows open
~
- edit sidebar
- hide tags
- 1password
- set hotkey
- search
ssh
and then setup cli developer tooling to manage ssh keys
- disable spotlight keyboard shortcuts
- alfred
- register license
- set preferences folder to
~/.config/alfred
to import - set hotkey
- chromium
- search engine
- default page zoom
- default font
- hide bookmarks bar
- install custom new tab page extension
- install chromium-web-store
- set
chrome://flags/#extension-mime-request-handling
toAlways prompt for install
- set
- install extensions
- okta
- install Tab Pinner
- install Markprompt Agent Assist
- install CSE internal extension
- enable incognito access within
chrome://extensions
- enable incognito access within
- manage default browsers with velja
- cleanshot
- register license
- disable default shortcuts
- set export location to
~/shots
- set after capture steps
- window screenshots transparent
- hide/show overlays shortcut to
cmd+shift+6
- advanced
- remove 2x retina suffix
- file name: rm Cleanshot and set to UTC
- ice set hidden apps
- hide icon
- hide all
- slack: Accessibility > Keyboard > press up arrow to edit last message
- trackpad 3 finger swipe between fullscreen windows
- don't need 3 finger drag on windows
- disable macbook charging sound
defaults write com.apple.PowerChime ChimeOnAllHardware -bool false; killall PowerChime
- set slack theme to system
- prevent display sleep / screen saver when powered
- remove spotlight menu bar icon
- add itsycal
-
export PATH="/Users/aldo/.bun/bin:$PATH"
- wallpaper
- ice bar preferences
- fuzzy find active window
- terminal font size (or ghostty)