mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Update install.sh
This commit is contained in:
parent
eb1e50acea
commit
967bf36bde
1 changed files with 14 additions and 3 deletions
17
install.sh
17
install.sh
|
@ -58,13 +58,24 @@ sudo mkfs.fat -F32 -n EFI $efiName
|
|||
sudo mkswap $swapName # swap partition
|
||||
sudo mkfs.btrfs -L root $rootName # /root partition
|
||||
|
||||
# 0. Mount the filesystems.
|
||||
# Mount the filesystems.
|
||||
sudo swapon $swapName
|
||||
sudo mount $rootName /mnt
|
||||
|
||||
# Create Subvolumes
|
||||
btrfs subvolume create /mnt/@
|
||||
btrfs subvolume create /mnt/@home
|
||||
|
||||
# Unmount root
|
||||
sudo umount /mnt
|
||||
|
||||
# Mount the subvolumes.
|
||||
mount -o noatime,commit=120,compress=zstd:10,subvol=@ /dev/lvm/root /mnt
|
||||
mkdir /mnt/home
|
||||
mount -o noatime,commit=120,compress=zstd:10,subvol=@home /dev/lvm/root /mnt/home
|
||||
|
||||
# Mount the EFI partition.
|
||||
sudo mkdir /mnt/boot/
|
||||
sudo mount $efiName /mnt/boot
|
||||
mount --mkdir $efiName /mnt/boot/
|
||||
|
||||
# Generate Nix configuration
|
||||
sudo nixos-generate-config --root /mnt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue