mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
first commit
This commit is contained in:
parent
695702d86e
commit
ecd6180813
2 changed files with 70 additions and 4 deletions
17
install.sh
17
install.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue