This commit is contained in:
Aaron Honeycutt 2023-03-28 19:04:12 +00:00
parent 967bf36bde
commit df9711b88b

View file

@ -63,19 +63,19 @@ sudo swapon $swapName
sudo mount $rootName /mnt sudo mount $rootName /mnt
# Create Subvolumes # Create Subvolumes
btrfs subvolume create /mnt/@ sudo btrfs subvolume create /mnt/@
btrfs subvolume create /mnt/@home sudo btrfs subvolume create /mnt/@home
# Unmount root # Unmount root
sudo umount /mnt sudo umount /mnt
# Mount the subvolumes. # Mount the subvolumes.
mount -o noatime,commit=120,compress=zstd:10,subvol=@ /dev/lvm/root /mnt sudo mount -o noatime,commit=120,compress=zstd:10,subvol=@ /dev/lvm/root /mnt
mkdir /mnt/home sudo mkdir /mnt/home
mount -o noatime,commit=120,compress=zstd:10,subvol=@home /dev/lvm/root /mnt/home sudo mount -o noatime,commit=120,compress=zstd:10,subvol=@home /dev/lvm/root /mnt/home
# Mount the EFI partition. # Mount the EFI partition.
mount --mkdir $efiName /mnt/boot/ sudo mount --mkdir $efiName /mnt/boot/
# Generate Nix configuration # Generate Nix configuration
sudo nixos-generate-config --root /mnt sudo nixos-generate-config --root /mnt