From 2aabea475d8bf93a93c21ec0663256058d964d04 Mon Sep 17 00:00:00 2001 From: Anders Rytter Hansen Date: Sat, 15 Nov 2025 01:53:45 -0300 Subject: [PATCH] Revert "Nvidia driver is buggy. Use Nouveau" This reverts commit 13626f9c72e6c3e2b60827de85e80999e85649a1. --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 001452b..07b2834 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,10 @@ ARG CACHEBUST=1 # Get list of kernels from my repo. If the list has been updated, then the image will be rebuilt. If it hasn't been updated, then caching of the previous build will be used. ADD "https://copr.fedorainfracloud.org/api_3/build/list?ownername=andersrh&projectname=my-ostree-os&packagename=kernel" /tmp/builds.txt +RUN echo 'omit_drivers+=" nouveau "' | tee /etc/dracut.conf.d/blacklist-nouveau.conf + COPY repo/*.repo /etc/yum.repos.d/ +RUN dnf config-manager --add-repo=https://negativo17.org/repos/epel-nvidia.repo -y RUN dnf install -y $( \ dnf list --available kernel\* --disablerepo='*' --enablerepo=my-ostree-os-rhel-epel 2>/dev/null \ @@ -19,6 +22,11 @@ RUN dnf install --nogpgcheck -y https://mirrors.rpmfusion.org/free/el/rpmfusion- RUN dnf install -y fish distrobox nvtop intel-media-driver libva-intel-driver RUN dnf install -y https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher-2.2.0-travis995.0f91801.x86_64.rpm +# Install Negativo17 Nvidia driver +RUN dnf install -y dkms-nvidia nvidia-driver nvidia-persistenced opencl-filesystem libva-nvidia-driver +RUN sed -i -e 's/kernel-open$/kernel/g' /etc/nvidia/kernel.conf +RUN dkms install nvidia/$(ls /usr/src/ | grep nvidia- | cut -d- -f2-) -k $(rpm -q --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}\n" ${KERNEL}) + RUN dnf install -y waydroid scx-scheds # Remove plocate to avoid updatedb going crazy with scanning the file system once a day