fix: pkg issues
This commit is contained in:
parent
e51b1a0eb8
commit
9c6be19d19
6
config
6
config
@ -24,17 +24,17 @@ pkg=(
|
||||
gnu-netcat
|
||||
htop
|
||||
jq
|
||||
linux{,lts,firmware}
|
||||
linux{,-lts,-firmware}
|
||||
lsof
|
||||
man-{db,pages} tldr
|
||||
neofetch
|
||||
neovim{,-lspconfig,-nvim-treesitter} python-pynvim ripgrep tree-sitter-cli
|
||||
networkmanager iptables-nft systemd-resolved wireguard-tools
|
||||
networkmanager iptables-nft wireguard-tools
|
||||
p7zip unrar
|
||||
podman{,-compose}
|
||||
ranger
|
||||
reflector
|
||||
rename{,utils}
|
||||
renameutils perl-rename
|
||||
rsync
|
||||
terminus-font awesome-terminal-fonts
|
||||
tree
|
||||
|
@ -5,6 +5,7 @@ pkg=(
|
||||
flameshot
|
||||
gammastep
|
||||
imagemagick
|
||||
keepassxc
|
||||
materia-{gtk-theme,kde} papirus-icon-theme gtk-engine-murrine
|
||||
mpv
|
||||
noto-fonts{,-cjk,-emoji} ttf-{dejavu,liberation}
|
||||
|
@ -1,14 +1,7 @@
|
||||
#!/bin/bash -e
|
||||
cd "$(dirname "$0")"
|
||||
. ./config
|
||||
|
||||
if [ -t 1 ]; then
|
||||
NORMAL='\e[0m'
|
||||
BOLD='\e[1m'
|
||||
GREEN='\e[32m'
|
||||
fi
|
||||
|
||||
PACMAN='pacman --noconfirm --needed -Syu'
|
||||
. ../../lib.sh
|
||||
|
||||
if [ "$EUID" != 0 ]; then
|
||||
echo 'This script needs root privileges.'
|
||||
@ -27,7 +20,7 @@ case "$(lspci -k | grep -A3 -E '(VGA|3D)')" in
|
||||
pkg=("${pkg[@]}" xf86-video-nouveau)
|
||||
;;
|
||||
esac
|
||||
$PACMAN "${pkg[@]}"
|
||||
pac "${pkg[@]}"
|
||||
|
||||
cp -rfT rootfs /
|
||||
|
||||
|
@ -1,34 +1,27 @@
|
||||
#!/bin/bash -e
|
||||
cd "$(dirname "$0")"
|
||||
. ./config
|
||||
|
||||
if [ -t 1 ]; then
|
||||
NORMAL='\e[0m'
|
||||
BOLD='\e[1m'
|
||||
GREEN='\e[32m'
|
||||
fi
|
||||
|
||||
PACMAN='pacman --noconfirm --needed -Syu'
|
||||
. ../lib.sh
|
||||
|
||||
if [ "$EUID" != 0 ]; then
|
||||
echo 'This script needs root privileges.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
$PACMAN "${pkg[@]}" flatpak
|
||||
pac "${pkg[@]}" flatpak
|
||||
flatpak install "${flatpakpkg[@]}"
|
||||
|
||||
case "$(lspci -k | grep -E '(VGA|3D)')" in
|
||||
*AMD*)
|
||||
$PACMAN mesa vulkan-radeon
|
||||
pac mesa vulkan-radeon
|
||||
modules=amdgpu
|
||||
;;
|
||||
*Intel*)
|
||||
$PACMAN mesa vulkan-intel
|
||||
pac mesa vulkan-intel
|
||||
modules=i915
|
||||
;;
|
||||
*NVIDIA*)
|
||||
$PACMAN nvidia{,-utils,-settings}
|
||||
pac nvidia{,-utils,-settings}
|
||||
modules='nvidia nvidia_modeset nvidia_uvm nvidia_drm'
|
||||
;;
|
||||
esac
|
||||
|
13
install.sh
13
install.sh
@ -1,14 +1,7 @@
|
||||
#!/bin/bash -e
|
||||
cd "$(dirname "$0")"
|
||||
. ./config
|
||||
|
||||
if [ -t 1 ]; then
|
||||
NORMAL='\e[0m'
|
||||
BOLD='\e[1m'
|
||||
GREEN='\e[32m'
|
||||
fi
|
||||
|
||||
PACMAN='pacman --noconfirm --needed -Syu'
|
||||
. ./lib.sh
|
||||
|
||||
# System config
|
||||
cp -rfT rootfs/ /
|
||||
@ -29,7 +22,7 @@ esac
|
||||
sed -i '/^HOOKS=(/s/filesystems/encrypt filesystems/' /etc/mkinitcpio.conf
|
||||
|
||||
# Packages
|
||||
$PACMAN "${pkg[@]}" "$cpu-ucode"
|
||||
pac "${pkg[@]}" "$cpu-ucode"
|
||||
systemctl enable \
|
||||
NetworkManager \
|
||||
ip6tables \
|
||||
@ -40,7 +33,7 @@ systemctl enable \
|
||||
systemd-timesyncd
|
||||
|
||||
if ls -d /sys/class/power_supply/BAT*/ > /dev/null 2>&1; then
|
||||
$PACMAN "${laptop_pkg[@]}"
|
||||
pac "${laptop_pkg[@]}"
|
||||
systemctl enable tlp
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user