Skip to content

Instantly share code, notes, and snippets.

@astutecat
astutecat / create-darwin-volume.sh
Last active November 1, 2021 21:45
Notes on setting up Nix on MacOS.
#!/bin/sh
set -e
root_disk() {
diskutil info -plist /
}
apfs_volumes_for() {
disk=$1
diskutil apfs list -plist "$disk"

Keybase proof

I hereby claim:

  • I am astutecat on github.
  • I am astutecat (https://keybase.io/astutecat) on keybase.
  • I have a public key whose fingerprint is D4F5 3394 F911 4E9F 6D72 4E18 5324 93B3 EC55 867D

To claim this, I am signing this object: