-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0058346
commit 2870a5a
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
default: | ||
@just --list | ||
|
||
set-kargs: | ||
rpm-ostree kargs \ | ||
--append=rd.driver.blacklist=nouveau \ | ||
--append=modprobe.blacklist=nouveau \ | ||
--append=nvidia-drm.modeset=1 | ||
|
||
enroll-secure-boot-key: | ||
sudo mokutil --import /etc/pki/akmods/certs/akmods-nvidia.der | ||
|
||
test-cuda: | ||
podman run \ | ||
--user 1000:1000 \ | ||
--security-opt=no-new-privileges \ | ||
--cap-drop=ALL \ | ||
--security-opt label=type:nvidia_container_t \ | ||
docker.io/mirrorgooglecontainers/cuda-vector-add:v0.1 | ||
|
||
setup-firefox-flatpak-vaapi: | ||
flatpak override \ | ||
--user \ | ||
--filesystem=host-os \ | ||
--env=LIBVA_DRIVER_NAME=nvidia \ | ||
--env=LIBVA_DRIVERS_PATH=/run/host/usr/lib64/dri \ | ||
--env=LIBVA_MESSAGING_LEVEL=1 \ | ||
--env=MOZ_DISABLE_RDD_SANDBOX=1 \ | ||
--env=NVD_BACKEND=direct \ | ||
org.mozilla.firefox |