first commit

This commit is contained in:
Aaron Honeycutt 2022-05-07 14:42:21 -06:00
parent 695702d86e
commit ecd6180813
2 changed files with 70 additions and 4 deletions

View file

@ -60,17 +60,26 @@ sudo cryptsetup luksFormat -v -s 512 -h sha512 $rootName
sudo cryptsetup luksOpen $rootName crypt-root
sudo mkfs.fat -F32 -n EFI $efiName # EFI partition
sudo mkfs.ext4 -L root /dev/mapper/crypt-root # / partition
mkfs.btrfs -L root /dev/mapper/crypt-root # /root partition
sudo mkswap -L swap $swapName # swap partition
# 0. Mount the filesystems.
sudo mount /dev/disk/by-label/root /mnt
sudo swapon $swapName
# 1. Create directory to mount EFI partition.
sudo mkdir /mnt/boot/
# Create Subvolumes
btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@home
# 2.Mount the EFI partition.
# 1. Create directory to mount partitions and subvolume
mkdir /mnt/boot/
mkdir /mnt/home/
# 2. Mount the subvolumes.
mount -o noatime,commit=120,compress=zstd:10,space_cache,subvol=@ $rootName /mnt
mount -o noatime,commit=120,compress=zstd:10,space_cache,subvol=@home $rootName /mnt/home
# 3. Mount the EFI partition.
sudo mount $efiName /mnt/boot
# Generate Nix configuration