Last active
February 13, 2023 07:12
-
-
Save dmjio/77bb40a52c187e279e06 to your computer and use it in GitHub Desktop.
How to install nixos on a macbook pro dual boot (mid-2012 model)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 0: Download unetbootin and the latest nixos iso, put nixos iso onto unetbootin | |
Step 1: On OSX, Resize your OSX partition using disk utility (leave 25% - 75% as free space) | |
Step 2: Boot into NixOS from USB (hold down Alt-Option) | |
Step 3: Use fdisk to create 3 new partitions (nixosswap ~10GB, nixoshome ~75GB, nixosroot ~20GB) | |
Step 4: Init file systems / swaps | |
# mkfs.ext4 -L nixosroot /dev/sda4 | |
# mkswap -L nixosswap /dev/sda5 | |
# mkfs.ext4 -L nixoshome /dev/sda6 | |
Step 5: Mount | |
# mount /dev/sda4 /mnt | |
# mkdir /mnt/boot | |
# mount /dev/sda1 /mnt/boot | |
# swapon /dev/disk/by-label/nixosswap | |
Step 6: Generate | |
# nixos-generate-config --root /mnt | |
Step 7: Install | |
# nixos-install | |
For more: https://github.com/mbbx6spp/mbp-nixos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment