Skip to content

Latest commit

 

History

History

m1max

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

m1max

This is my M1 Max Macbook, running MacOS and using nix-darwin and home-manager to manage things.

setup

# ensure nix is installed, repo is cloned to ~/cfg
# initial switch. after this, you can use just `hms` to update!
$(nix build --no-link --print-out-paths --extra-experimental-features nix-command --extra-experimental-features flakes ~/cfg#hmx.m1max)/bin/switch

manual tweaks

max open files

curl https://raw.githubusercontent.com/jpetrucciani/nix/main/scripts/files/com.startup.sysctl.plist |
    sudo tee /Library/LaunchDaemons/com.startup.sysctl.plist
sudo chown root:wheel /Library/LaunchDaemons/com.startup.sysctl.plist
sudo launchctl load /Library/LaunchDaemons/com.startup.sysctl.plist

disable annoying message for brew installs

# before first switch
sudo spctl --master-disable

# after switch
sudo spctl --master-enable

install rosetta2

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

In this directory

This file defines the OS configuration for the m1max machine.