Remove a bunch of old stuff from the setup install script

This commit is contained in:
exu 2024-09-16 21:07:31 +02:00
parent 93f993f1b9
commit 475c164d78

View File

@ -21,10 +21,6 @@ func_dont_timeout &
# get script directory
scriptloc="$BASH_SOURCE"
setupdir=$(dirname "$scriptloc")
#setupdir=$(pwd)
#change to home directory
#cd "$HOME"
# check if multilib repo is enabled
if ! pacman -Sl multilib &>/dev/null; then
@ -155,6 +151,7 @@ for choice in $choices; do
;;
80)
echo "onedriver" >>"$setupdir/aurselectedpkgs.txt"
;;
esac
done
@ -165,8 +162,7 @@ options=(0 "auto-cpufreq" off
1 "corectrl" off)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
clear
for choice in $choices
do
for choice in $choices; do
case $choice in
0)
in_acpufreq=1
@ -214,28 +210,6 @@ for choice in $choices; do
esac
done
: '
# Packages installed on different systems
in_arco_pc=0
in_arco_hp=0
cmd=(dialog --separate-output --checklist "Install system specific packages?" 22 76 16)
options=(1 "Arco PC" off
2 "Arco HP" off)
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
clear
for choice in $choices; do
case $choice in
1)
in_arco_pc=1
;;
2)
in_arco_hp=1
;;
esac
done
'
if [ -f "$setupdir/notfoundpackages.txt" ]; then
rm "$setupdir/notfoundpackages.txt"
fi
@ -375,24 +349,6 @@ if [ $in_podman -eq 1 ]; then
sudo usermod -aG podman "$USER"
fi
# other system configs
: '
# arco pc
if [ $in_arco_pc -eq 1 ]; then
echo "Installing arco pc packages"
paru -S --needed - <"$setupdir/packages/lupusregina-packages.txt"
fi
# arco hp
if [ $in_arco_hp -eq 1 ]; then
echo "Installing arch hp packages"
paru -S --needed - <"$setupdir/packages/arch-hp-packages.txt"
fi
'
# install nix
#curl -sSf -L https://install.determinate.systems/nix | sh -s -- install
##############################
##### Configuration #####
##############################
@ -401,18 +357,9 @@ echo Configuring packages
#change shell
chsh -s /usr/bin/fish "$USER"
# setup autotrash
#autotrash -td 5 --install
#systemctl --user enable autotrash.timer
#enable vnstat
sudo systemctl enable --now vnstat
# enable lockscreen for systemd
#sudo systemctl enable betterlockscreen@$USER
# enable firewall
echo "Enabling Firewall"
sudo systemctl enable --now firewalld
@ -422,17 +369,6 @@ sudo firewall-cmd --zone=public --permanent --remove-service=ssh || true
# enable gdm
sudo systemctl enable gdm
# regenerate locale
# Fixes rofi not launching
#sudo locale-gen
: '
if [[ $(pacman -Q | grep sway) ]]; then
sudo systemctl enable --now seatd.service
sudo gpasswd -a "$USER" seat 1>/dev/null
fi
'
# update fonts cache
fc-cache -f