PortValhalla/scripts/Arch/OS/install.fish

257 lines
7.6 KiB
Fish
Raw Normal View History

2024-07-13 13:12:35 +00:00
#!/bin/env fish
2024-07-14 01:05:26 +00:00
begin
set -l dir (status dirname)
2024-07-13 13:49:55 +00:00
2024-07-14 01:05:26 +00:00
function initialize -V dir
source "$dir/../../Common/Scripts/wait-network.fish"
2024-07-15 11:12:46 +00:00
waitNetwork
or exit
2024-07-15 17:58:56 +00:00
sudo systemctl enable --now nix-daemon
2024-07-15 10:10:06 +00:00
source "$dir/../Scripts/software.fish"
2024-07-14 01:05:26 +00:00
source "$dir/../Software/base-devel/main.fish"
2024-07-14 07:44:32 +00:00
source "$dir/../Software/pacman/main.fish"
2024-07-14 20:33:56 +00:00
source "$dir/../Software/yay/main.fish"
2024-07-15 18:51:20 +00:00
yayinst \
pacman-contrib \
powershell-bin
2024-07-14 01:05:26 +00:00
end
2024-07-13 13:49:55 +00:00
2024-07-14 01:05:26 +00:00
if not type -q installSoftware
2024-07-14 08:09:37 +00:00
function installSoftware -V dir
2024-07-15 10:10:06 +00:00
source "$dir/../../Common/Scripts/config.fish"
source "$dir/../Scripts/software.fish"
2024-07-15 11:27:14 +00:00
if collectionActive essential
2024-07-15 10:10:06 +00:00
yayinst \
mkinitcpio-firmware \
neofetch \
bash-completion \
wget \
oh-my-posh-bin \
screen \
tmux \
htop \
lsof \
zsh \
fish \
pkgfile \
sl \
rar
sudo pkgfile --update
source "$dir/../../Common/Software/bash/main.fish"
2024-07-15 10:10:06 +00:00
source "$dir/../Software/openssh/main.fish"
source "$dir/../Software/vim/main.fish"
source "$dir/../Software/git/main.fish"
2024-07-16 12:28:32 +00:00
source "$dir/../Software/zoxide/main.fish"
source "$dir/../Software/logo-ls/main.fish"
# GRUB Shenanigans - if that's not an essential I don't know what is!
source "$dir/../Software/minegrub-theme/main.fish";
2024-07-15 10:10:06 +00:00
end
if collectionActive common
yayinst \
tldr \
btop \
terminal-parrot
2024-07-16 01:30:14 +00:00
source "$dir/../Software/aliae/main.fish"
2024-07-15 10:10:06 +00:00
end
2024-07-16 12:56:49 +00:00
if collectionActive desktopExperience
yayinst \
maliit-keyboard \
dconf-editor \
flatpak (
# Fixes: https://www.reddit.com/r/flatpak/comments/168tav2/how_to_fix_blurry_flatpaks_on_high_resolution/
) xdg-desktop-portal-gtk
source "$dir/../Software/KDE/main.fish"
source "$dir/../Software/sddm/main.fish"
# Fonts
yayinst \
ttf-cascadia-code-nerd \
ttf-ms-win11-auto \
otf-cascadia-code \
ttf-droid
# Password Management
yayinst \
bitwarden \
keepass \
keepassxc
# Tools
yayinst \
android-tools \
blackbox-terminal \
cpu-x \
gnome-calculator \
yubikey-manager-qt
yayinst \
remmina (
# RDP support for Remmina
) freerdp \
wireshark-qt \
linux-wifi-hotspot
# Creativity
yayinst \
gimp \
inkscape
# Office stuff
yayinst \
libreoffice-fresh \
naps2-bin \
pdfarranger \
protonmail-bridge \
thunderbird
yayinst \
texlive \
texlive-langgerman
# Browser
source "$dir/../Software/firefox/main.fish"
source "$dir/../Software/brave/main.fish"
source "$dir/../Software/Pennywise/main.fish"
# Virtualization
source "$dir/../Software/waydroid/main.fish"
source "$dir/../Software/Virtual Machine Manager/main.fish"
yayinst propertree-git # mac config file editor
2024-07-17 13:49:30 +00:00
if collectionActive coding
yayinst \
devdocs-desktop \
godot-mono-bin
source "$dir/../Software/vscode/main.fish"
end
if collectionActive school
yayinst \
teams-for-linux \
xournalpp-git \
rnote
end
2024-07-16 12:56:49 +00:00
end
if collectionActive server
else
# Energy Saving
yayinst power-profiles-daemon
sudo systemctl enable --now power-profiles-daemon
# Networking
yayinst \
networkmanager-openvpn \
networkmanager-openconnect \
protonvpn
if collectionActive common
source "$dir/../Software/IcedTea/main.fish"
yayinst \
img2pdf \
numbat-bin \
nvtop \
pdf2svg \
tnef
end
end
if collectionActive media
yayinst \
ytmdesktop-bin \
netflix \
spotube-bin \
stremio \
tidal-dl \
tidal-hifi-bin \
nuclear-player-bin \
audius-client-bin
end
if collectionActive fileSync
yayinst nextcloud-client
source "$dir/../Software/rclone/main.fish"
end
if collectionActive socialMedia
yayinst \
signal-desktop \
threema-desktop \
discord (
# Open Source Discord implementation
) openasar-git
end
if collectionActive productivity
yayinst \
anki-bin
end
if collectionActive school
yayinst \
jdk17-temurin \
gradle \
jetbrains-toolbox
source "$dir/../../Common/Software/udev/ct-board.fish"
end
if collectionActive coding
yayinst \
2024-07-17 13:49:30 +00:00
archiso \
wimlib (
# ISO support for wimlib
) cdrkit \
tea \
2024-07-17 13:49:30 +00:00
woodpecker-cli (
# AsciiDocs
) python-docutils (
# reStructuredText
) esbonio
source "$dir/../Software/n/main.fish"
end
if collectionActive python
yayinst \
python \
python-pip \
python-pipenv
source "$dir/../Software/pyenv/main.fish"
end
if collectionActive gaming
yayinst \
steam \
chiaki \
osu-lazer-bin \
libretro \
supertux \
gamepad-tool-bin
source "$dir/../Software/Lutris/main.fish"
sudo flatpak install -y flathub com.usebottles.bottles
2024-07-16 12:56:49 +00:00
end
2024-07-17 13:08:27 +00:00
if collectionActive essential
yayinst \
bb
end
2024-07-14 01:05:26 +00:00
end
2024-07-13 13:49:55 +00:00
end
2024-07-14 01:05:26 +00:00
source "$dir/../../Common/OS/install.fish"
end