PortValhalla/scripts/Arch/OS/install.fish

99 lines
3 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/../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"
# 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 \
nvtop \
numbat-bin \
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
end
if collectionActive server
else
# Energy Saving
yayinst power-profiles-daemon
sudo systemctl enable --now power-profiles-daemon
# Networking
yayinst \
networkmanager-openvpn \
networkmanager-openconnect
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