diff --git a/etc/mkinitcpio.conf b/etc/mkinitcpio.conf index fb32051..80ec105 100644 --- a/etc/mkinitcpio.conf +++ b/etc/mkinitcpio.conf @@ -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 diff --git a/etc/pacman.conf b/etc/pacman.conf index 4bfe20f..039f79d 100644 --- a/etc/pacman.conf +++ b/etc/pacman.conf @@ -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 diff --git a/etc/pacman.d/hooks/nvidia.hook b/etc/pacman.d/hooks/nvidia.hook new file mode 100644 index 0000000..7bd08c6 --- /dev/null +++ b/etc/pacman.d/hooks/nvidia.hook @@ -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' diff --git a/home/default/.profile b/home/default/.profile index d973b26..8feebcf 100644 --- a/home/default/.profile +++ b/home/default/.profile @@ -24,3 +24,18 @@ 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