switch to nvidia drivers
This commit is contained in:
parent
098be21c2b
commit
6b6202a7f8
@ -4,8 +4,8 @@
|
||||
# run. Advanced users may wish to specify all system modules
|
||||
# in this array. For instance:
|
||||
# MODULES=(piix ide_disk reiserfs)
|
||||
# MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
|
||||
MODULES=()
|
||||
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
|
||||
# MODULES=()
|
||||
|
||||
# BINARIES
|
||||
# This setting includes any additional binaries a given user may
|
||||
|
@ -70,14 +70,14 @@ LocalFileSigLevel = Optional
|
||||
# repo name header and Include lines. You can add preferred servers immediately
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
[archzfs]
|
||||
Server = http://archzfs.com/$repo/x86_64
|
||||
Server = http://mirror.sum7.eu/archlinux/archzfs/$repo/x86_64
|
||||
Server = https://mirror.biocrafting.net/archlinux/archzfs/$repo/x86_64
|
||||
Server = https://mirror.in.themindsmaze.com/archzfs/$repo/x86_64
|
||||
# [archzfs]
|
||||
# Server = http://archzfs.com/$repo/x86_64
|
||||
# Server = http://mirror.sum7.eu/archlinux/archzfs/$repo/x86_64
|
||||
# Server = https://mirror.biocrafting.net/archlinux/archzfs/$repo/x86_64
|
||||
# Server = https://mirror.in.themindsmaze.com/archzfs/$repo/x86_64
|
||||
|
||||
[zfs-linux-lts]
|
||||
Server = http://kernels.archzfs.com/$repo/
|
||||
# [zfs-linux-lts]
|
||||
# Server = http://kernels.archzfs.com/$repo/
|
||||
|
||||
#[testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
15
etc/pacman.d/hooks/nvidia.hook
Normal file
15
etc/pacman.d/hooks/nvidia.hook
Normal file
@ -0,0 +1,15 @@
|
||||
[Trigger]
|
||||
Operation=Install
|
||||
Operation=Upgrade
|
||||
Operation=Remove
|
||||
Type=Package
|
||||
Target=nvidia
|
||||
Target=linux-lts
|
||||
# Change the linux part above and in the Exec line if a different kernel is used
|
||||
|
||||
[Action]
|
||||
Description=Update Nvidia module in initcpio
|
||||
Depends=mkinitcpio
|
||||
When=PostTransaction
|
||||
NeedsTargets
|
||||
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux-lts) exit 0; esac; done; /usr/bin/mkinitcpio -P'
|
@ -24,3 +24,21 @@ export PATH="/home/default/.dotnet/tools:$PATH"
|
||||
|
||||
# git
|
||||
export GIT_DISCOVERY_ACROSS_FILESYSTEM=true
|
||||
|
||||
## sway on nvidia
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
# General wayland environment variables
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
# Firefox wayland environment variable
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
export MOZ_USE_XINPUT2=1
|
||||
# OpenGL Variables
|
||||
export GBM_BACKEND=nvidia-drm
|
||||
export __GL_GSYNC_ALLOWED=0
|
||||
export __GL_VRR_ALLOWED=0
|
||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
# hardware acceleration
|
||||
export VDPAU_DRIVER=nvidia
|
||||
export LIBVA_DRIVER_NAME=vdpau
|
||||
|
Loading…
Reference in New Issue
Block a user