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
gdisk /dev/sda # make 1 partition | |
mkfs.vfat -n BOOT /dev/sda1 | |
mkfs.btrfs -L root /dev/sdb | |
mkfs.btrfs -L docker /dev/sdc | |
mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache /dev/sdb /mnt/ | |
btrfs subvolume create /mnt/nixos | |
umount /mnt/ | |
mount -t btrfs -o noatime,discard,ssd,autodefrag,compress=lzo,space_cache,subvol=nixos /dev/sdb /mnt/ |
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
# make sure the following is installed: | |
# - Xcode Command Line Tools (xcode-select --install) | |
# - OpenSSL from homebrew (brew install openssl && brew link openssl --force) | |
# dependencies and preparations | |
brew update | |
brew install git ossp-uuid md5sha1sum coreutils pcre gnutls libidn gsasl pkg-config libxml2 | |
brew link libxml2 --force | |
brew tap darinmorrison/haskell | |
brew install darinmorrison/haskell/cabal-install |