artix

desc
git clone https://git.awy.one/artix.git
Log | Files | Refs | README | LICENSE

commit c73912ee686a88a8be6fc4c2c81b6120ae0c8636
parent 84fbde898f8993cba5987cfb29aedf67b4964ff4
Author: Awnrt <roman.levikoff@gmail.com>
Date:   Fri, 10 May 2024 11:44:25 +0300

moved to runit cuz it suckless

Diffstat:
Minstall.sh | 12++----------
Mpost_chroot.sh | 15+++++----------
2 files changed, 7 insertions(+), 20 deletions(-)

diff --git a/install.sh b/install.sh @@ -25,19 +25,11 @@ mkdir /mnt/home mkdir /mnt/boot/efi mount /dev/$boot_drive /mnt/boot/efi -#Openrc or dinit -#rc-service ntpd start -dinitctl start ntpd - +sv up ntpd pacman -Sy --confirm -pacman -S pacman-contrib --noconfirm -#cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup -#rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist -#Choose openrc or dinit -#basestrap /mnt base base-devel openrc elogind-openrc -basestrap /mnt base base-devel dinit elogind-dinit +basestrap /mnt base base-devel runit elogind-runit basestrap /mnt linux linux-firmware fstabgen -U /mnt >> /mnt/etc/fstab diff --git a/post_chroot.sh b/post_chroot.sh @@ -1,8 +1,10 @@ pacman -Sy bash-completion --noconfirm ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime hwclock --systohc +mkdir -p /etc/modprobe.d/ echo "options hid_apple fnmode=0" > /etc/modprobe.d/hid_apple.conf -echo en_US.UTF-8 UTF-8 >> /etc/locale.gen +echo 'options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"' > /etc/modprobe.d/nvidia.conf +sed -i -e "/^#"en_US.UTF-8"/s/^#//" /etc/locale.gen locale-gen echo LANG=en_US.UTF-8 > /etc/locale.conf @@ -30,11 +32,8 @@ echo "[lib32]" >> /etc/pacman.conf echo "Include = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf pacman -Sy --noconfirm -#Openrc or dinit -#pacman -S dhcpcd dhcpcd-openrc --noconfirm -#rc-update add dhcpcd default -pacman -S dhcpcd dhcpcd-dinit --noconfirm -dinitctl enable dhcpcd +pacman -S dhcpcd dhcpcd-runit --noconfirm +ln -s /etc/runit/sv/dhcpcd /etc/runit/runsvdir/default pacman -S intel-ucode --noconfirm @@ -48,12 +47,8 @@ pacman -S linux-headers --noconfirm pacman -S trizen --noconfirm pacman -S nvidia-dkms nvidia-utils opencl-nvidia lib32-nvidia-utils lib32-opencl-nvidia nvidia-settings libxnvctrl --noconfirm -#trizen -S nvidia-535xx-utils nvidia-535xx-dkms opencl-nvidia-535xx lib32-opencl-nvidia-535xx lib32-nvidia-535xx-utils nvidia-535xx-settings libxnvctrl-535xx - - sudo sed -i -e 's/MODULES=()/MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)/g' /etc/mkinitcpio.conf - mkdir /etc/pacman.d/hooks echo "[Trigger]" >> /etc/pacman.d/hooks/nvidia echo "Operation=Install" >> /etc/pacman.d/hooks/nvidia