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