Install for nvme, change packages from sway to hyprland. makepkg installation, fonts, are user's responsibility.

This commit is contained in:
0x221E
2026-03-05 14:05:09 +01:00
parent 7d13065953
commit 9570be2a47

View File

@@ -13,9 +13,9 @@ parted -s "$PART" set 1 esp on
parted -s "$PART" mkpart primary linux-swap 3GB 27GB parted -s "$PART" mkpart primary linux-swap 3GB 27GB
parted -s "$PART" mkpart primary ext4 27GB 100% parted -s "$PART" mkpart primary ext4 27GB 100%
PART_BOOT="${PART}1" PART_BOOT="${PART}p1"
PART_SWAP="${PART}2" PART_SWAP="${PART}p2"
PART_ROOTHOME="${PART}3" PART_ROOTHOME="${PART}p3"
echo -n "$LUKS_PASS" | cryptsetup luksFormat --type luks2 --iter-time 5000 "${PART_ROOTHOME}" echo -n "$LUKS_PASS" | cryptsetup luksFormat --type luks2 --iter-time 5000 "${PART_ROOTHOME}"
echo -n "$LUKS_PASS" | cryptsetup open "${PART_ROOTHOME}" roothome echo -n "$LUKS_PASS" | cryptsetup open "${PART_ROOTHOME}" roothome
@@ -43,10 +43,10 @@ echo "KEYMAP=trq" >> /etc/vconsole.conf
pacman -S --noconfirm base-devel sudo pacman -S --noconfirm base-devel sudo
pacman -S --noconfirm networkmanager alsa-utils bluez bluez-utils nvidia-open nvidia-utils pavucontrol pipewire pipewire-alsa pipewire-pulse polkit-gnome usbutils sof-firmware pacman -S --noconfirm networkmanager alsa-utils bluez bluez-utils nvidia-open nvidia-utils pavucontrol pipewire pipewire-alsa pipewire-pulse polkit-gnome usbutils sof-firmware
pacman -S --noconfirm alacritty firefox eog flameshot keepassxc ly sway swaybg zip unzip ttf-jetbrains-mono i3status pacman -S --noconfirm alacritty firefox eog flameshot keepassxc ly waybar hyprland hyprlock hyprpaper zip unzip ttf-jetbrains-mono
pacman -S --noconfirm ufw clamav opensnitch firejail pacman -S --noconfirm intel-ucode ufw clamav opensnitch firejail
pacman -S --noconfirm cmake cloc vim emacs cups docker docker-compose efibootmgr gdb ghidra ghostscript git git-lfs man-db man-pages mkcert nasm net-tools openssh qemu-base qemu-full dnsmasq dmidecode rustup valgrind virt-manager virt-viewer wireplumber wireguard-tools wireshark-qt wmenu wofi xdg-desktop-portal-gtk xdg-desktop-portal-wlr xorg-xwayland pyright clang iproute2 pacman -S --noconfirm cmake cloc vim emacs cups docker docker-compose efibootmgr gdb ghidra ghostscript git git-lfs man-db man-pages mkcert nasm net-tools openssh qemu-base qemu-full dnsmasq dmidecode rustup valgrind virt-manager virt-viewer wireplumber wireguard-tools wireshark-qt wmenu wofi xdg-desktop-portal-gtk xdg-desktop-portal-wlr xdg-desktop-portal-hyprland xorg-xwayland pyright clang iproute2
systemctl enable clamav-freshclam.service systemctl enable clamav-freshclam.service
systemctl enable clamav-daemon.service systemctl enable clamav-daemon.service
@@ -66,9 +66,6 @@ ufw enable
sed -i 's/HOOKS=(base systemd autodetect microcode modconf kms keyboard keymap sd-vconsole block filesystems fsck)/HOOKS=(base systemd autodetect microcode modconf kms keyboard keymap sd-vconsole block sd-encrypt filesystems fsck)/' /etc/mkinitcpio.conf sed -i 's/HOOKS=(base systemd autodetect microcode modconf kms keyboard keymap sd-vconsole block filesystems fsck)/HOOKS=(base systemd autodetect microcode modconf kms keyboard keymap sd-vconsole block sd-encrypt filesystems fsck)/' /etc/mkinitcpio.conf
mkinitcpio -P mkinitcpio -P
printf "Installing yay packages"
yay -S ttf-ms-fonts
printf "Configure ClamAV OnAccess" printf "Configure ClamAV OnAccess"
printf "OnAccessIncludePath /home/$USERNAME/\nOnAccessIncludePath /home/$USERNAME/\nOnAccessPrevention yes\nTemporaryDirectory /clamav/tmp" | tee -a /etc/clamav/clamd.conf printf "OnAccessIncludePath /home/$USERNAME/\nOnAccessIncludePath /home/$USERNAME/\nOnAccessPrevention yes\nTemporaryDirectory /clamav/tmp" | tee -a /etc/clamav/clamd.conf
sed -i '/^ExecStart=/ s/$/ --fdpass/' /etc/systemd/system/clamav-onacc.service sed -i '/^ExecStart=/ s/$/ --fdpass/' /etc/systemd/system/clamav-onacc.service
@@ -86,7 +83,8 @@ su - "$USERNAME" -c "cp -sr /home/$USERNAME/dotfiles/* /home/$USERNAME/.config/"
printf "Configuring yay..." printf "Configuring yay..."
su - "$USERNAME" -c "git clone https://aur.archlinux.org/yay.git" su - "$USERNAME" -c "git clone https://aur.archlinux.org/yay.git"
su - "$USERNAME" -c "cd yay && makepkg -si"
su - "$USERNAME" -c "echo 'install hyprpwcenter and set up secureboot, and add lockdown=integrity to systemd entry, then cd yay && makepkg -si fonts: yay -S ttf-ms-font' > ~/README.md"
echo "$USERNAME:$PASS" | chpasswd echo "$USERNAME:$PASS" | chpasswd