fix(FreeBSD): Installation fix

- Removed `--skip-unresolvable` incorrect option to pkg
- Install and setup nvidia drivers during pkg setup
- Do NOT install kitty by downloading binary for FreeBSD
- Add more packages for installation through pkg in FreeBSD
- WIP: Some required packages could not be installed in FreeBSD because
  they have longer names. Those package names are stored at the end of
  the package-list-os file for now.
This commit is contained in:
Pratik Tripathy
2025-01-02 00:30:47 +05:30
parent 74a51361a8
commit d4f25554e1
4 changed files with 27 additions and 17 deletions

View File

@@ -27,7 +27,7 @@ setup() {
dnf_setup dnf_setup
;; ;;
"freebsd") "freebsd")
OS_INSTALL_COMMAND="pkg install -y --skip-unresolvable" OS_INSTALL_COMMAND="pkg install -y"
OS_PKG_CHECK_COMMAND="pkg search" OS_PKG_CHECK_COMMAND="pkg search"
freebsd_setup freebsd_setup
;; ;;
@@ -43,12 +43,15 @@ freebsd_setup() {
sudo pkg update && sudo pkg upgrade sudo pkg update && sudo pkg upgrade
# Install KDE WM # Install KDE WM
sudo pkg install -y xorg kde5 sddm sudo pkg install -y xorg kde5 sddm nvidia-driver
# Add current user to video & wheel group # Add current user to video & wheel group
sudo pw groupmod video -m "$(whoami)" sudo pw groupmod video -m "$(whoami)"
sudo pw groupmod wheel -m "$(whoami)" sudo pw groupmod wheel -m "$(whoami)"
# Load nvidia drivers to kernel
sudo sysrc kld_list+="nvidia-modeset nvidia"
# Enable services that will be needed # Enable services that will be needed
sudo sysrc dbus_enable="YES" sudo sysrc dbus_enable="YES"
sudo sysrc sddm_enable="YES" sudo sysrc sddm_enable="YES"

View File

@@ -16,7 +16,9 @@ rustlang() {
} }
manual_installs() { manual_installs() {
if [ "$(uname -s)" != "FreeBSD" ]; then
kitty_term kitty_term
fi
rustlang rustlang
} }

View File

@@ -29,5 +29,3 @@ tokei
tree-sitter tree-sitter
yt-dlp yt-dlp
zoxide zoxide
zsh-autosuggestions
zsh-syntax-highlighting

View File

@@ -6,7 +6,6 @@ build-essential
libreadline-dev libreadline-dev
libavcodec-extra libavcodec-extra
nvidia-driver nvidia-driver
synaptic
# Below few are dnf-only packages # Below few are dnf-only packages
akmod-nvidia akmod-nvidia
dnf-plugins-core dnf-plugins-core
@@ -17,10 +16,7 @@ aspnetcore-runtime-8.0
bash bash
bleachbit bleachbit
brave-browser brave-browser
ca-certificates
clang
cmake cmake
code
containerd.io containerd.io
curl curl
docker-buildx-plugin docker-buildx-plugin
@@ -29,14 +25,11 @@ docker-ce-cli
docker-compose-plugin docker-compose-plugin
dolphin dolphin
dolphin-plugins dolphin-plugins
dnscrypt-proxy
dotnet-runtime-8.0 dotnet-runtime-8.0
dotnet-sdk-8.0 dotnet-sdk-8.0
evolution-ews evolution-ews
evolution-mapi evolution-mapi
extra-cmake-modules
ffmpeg ffmpeg
firefox
flameshot flameshot
flatpak flatpak
gcc gcc
@@ -48,13 +41,10 @@ gparted
grub-customizer grub-customizer
htop htop
kde-spectacle kde-spectacle
kdeconnect
kitty-terminfo kitty-terminfo
llvm llvm
lua
lua5.3 lua5.3
luajit luajit
make
nala nala
neovim neovim
net-tools net-tools
@@ -84,13 +74,30 @@ zsh
bat bat
fd-find fd-find
fzf fzf
firefox-esr
gitleaks
jq jq
kitty
lazygit
libreoffice libreoffice
lua54 lua54
podman
rclone rclone
shellcheck sqlite
sqlite3 tokei
tree-sitter tree-sitter
vscode vscode
yt-dlp yt-dlp
zoxide zoxide
# Conflicts on FreeBSD
ca-certificates
clang
code
dnscrypt-proxy
extra-cmake-modules
firefox
kdeconnect
lua
make
synaptic