summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall-artix.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/install-artix.sh b/install-artix.sh
index 3139938..9ee0380 100755
--- a/install-artix.sh
+++ b/install-artix.sh
@@ -213,11 +213,16 @@ if [[ $autologin == true ]]; then
-i /mnt/etc/runit/sv/agetty-tty1/conf
fi
-# Add pacman options
+# Add PACMAN download style
pac_options=ILoveCandy
sed "s/# Misc options/# Misc options\n${pac_options}/g" \
-i /mnt/etc/pacman.conf
+# Set MAKEFLAGS to match CPU threads for faster compiling
+cp /etc/makepkg.conf /etc/makepkg.conf.bak
+sed 's/#MAKEFLAGS=\".*\"/MAKEFLAGS=\"-j$(nproc)\"' \
+ -i /etc/makepkg.conf
+
# Configure mkinitcpio.conf
modules="btrfs"
hooks="base udev autodetect modconf kms keyboard keymap block encrypt resume filesystems fsck"