mirror of
https://github.com/JonasunderscoreJones/ArchSystemSetup.git
synced 2025-10-23 03:29:20 +02:00
fixed for initial run
This commit is contained in:
parent
9f0e2aef1a
commit
81fba8e6b0
1 changed files with 28 additions and 16 deletions
44
syssetup.sh
44
syssetup.sh
|
@ -10,26 +10,25 @@ if [[ "$1" == "--help" || "$2" == "--help" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Default values
|
# run the commands
|
||||||
MAINUSER = $USER
|
install_chaoticaur
|
||||||
|
install_yay_aur
|
||||||
|
install_packages
|
||||||
|
install_flatpaks
|
||||||
|
install_firefox_theme
|
||||||
|
install_sdkman
|
||||||
|
install_ghcup
|
||||||
|
remove_packages
|
||||||
|
|
||||||
# Use provided arguments or defaults
|
install_yay_aur() {
|
||||||
|
sudo pacman -S yay --noconfirm
|
||||||
|
|
||||||
install_flatpaks() {
|
|
||||||
# Install flatpak
|
|
||||||
pacman -S flatpak --no-confirm
|
|
||||||
|
|
||||||
# Install the flatpaks
|
|
||||||
curl -s https://syssetup.jonasjones.dev/flatpaks | xargs -n 1 flatpak install --noninteractive --assumeyes
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
install_chaoticaur() {
|
install_chaoticaur() {
|
||||||
sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
|
sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com --noconfirm
|
||||||
sudo pacman-key --lsign-key 3056513887B78AEB
|
sudo pacman-key --lsign-key 3056513887B78AEB --noconfirm
|
||||||
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'
|
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' --noconfirm
|
||||||
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
|
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' --noconfirm
|
||||||
echo "Appending to /etc/pacman.conf..."
|
echo "Appending to /etc/pacman.conf..."
|
||||||
|
|
||||||
if ! grep -q '\[chaotic-aur\]' /etc/pacman.conf; then
|
if ! grep -q '\[chaotic-aur\]' /etc/pacman.conf; then
|
||||||
|
@ -72,3 +71,16 @@ install_ghcup() {
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
|
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_flatpaks() {
|
||||||
|
# Install flatpak
|
||||||
|
sudo pacman -S flatpak --no-confirm
|
||||||
|
|
||||||
|
# Install the flatpaks
|
||||||
|
curl -s https://syssetup.jonasjones.dev/flatpaks | xargs -n 1 flatpak install --noninteractive --assumeyes
|
||||||
|
}
|
||||||
|
|
||||||
|
install_packages() {
|
||||||
|
# Install the packages
|
||||||
|
curl -s https://syssetup.jonasjones.dev/packages | xargs -n 1 yay -S --noconfirm
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue