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
;;
"freebsd")
OS_INSTALL_COMMAND="pkg install -y --skip-unresolvable"
OS_INSTALL_COMMAND="pkg install -y"
OS_PKG_CHECK_COMMAND="pkg search"
freebsd_setup
;;
@@ -43,12 +43,15 @@ freebsd_setup() {
sudo pkg update && sudo pkg upgrade
# 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
sudo pw groupmod video -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
sudo sysrc dbus_enable="YES"
sudo sysrc sddm_enable="YES"

View File

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

View File

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

View File

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