mirror of
https://gitlab.com/ahoneybun/nyxi-installer.git
synced 2025-05-12 11:04:02 -06:00
Add sudo
This commit is contained in:
parent
967bf36bde
commit
df9711b88b
1 changed files with 6 additions and 6 deletions
12
install.sh
12
install.sh
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue