Configure nvidia drivers while I wait for RMA

This commit is contained in:
Christopher Mühl 2025-09-22 14:14:12 +02:00
parent 492dd4fd8a
commit e728e34a5d
No known key found for this signature in database
GPG key ID: E919B0F59E14FD47
5 changed files with 28 additions and 14 deletions

View file

@ -11,6 +11,7 @@
devenv devenv
# Build tools # Build tools
platformio
cargo cargo
glibc glibc
gcc gcc

View file

@ -36,7 +36,7 @@ in {
monitor=,preferred,auto,1 monitor=,preferred,auto,1
# Gaps for eww # Gaps for eww
monitor=DP-1,addreserved,40,0,0,0 monitor=DP-2,addreserved,40,0,0,0
# monitor=,addreserved,40,0,0,0 # monitor=,addreserved,40,0,0,0
# Single tiled windows in a workspace on my main monitor # Single tiled windows in a workspace on my main monitor
@ -63,8 +63,11 @@ in {
env = XCURSOR_SIZE,28 env = XCURSOR_SIZE,28
env = HYPRCURSOR_THEME,rose-pine-hyprcursor env = HYPRCURSOR_THEME,rose-pine-hyprcursor
env = HYPRCURSOR_SIZE,28 env = HYPRCURSOR_SIZE,28
env = WLR_NO_HARDWARE_CURSORS,1 # env = WLR_NO_HARDWARE_CURSORS,1
env = NIXOS_OZONE_WL,1 env = NIXOS_OZONE_WL,1
env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = NVD_BACKEND,direct
debug { debug {
disable_logs = false disable_logs = false
@ -87,6 +90,10 @@ in {
sensitivity = 0 # -1.0 - 1.0, 0 means no modification. sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
} }
cursor {
no_hardware_cursors = true
}
general { general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more # See https://wiki.hyprland.org/Configuring/Variables/ for more

View file

@ -16,5 +16,5 @@ WALLPAPER_DIR=$(dirname "$WALLPAPER_PATH")
npx themer -t wallpaper-circuits -o "$WALLPAPER_BASE" --color-set "$THEME_FILE_JSON" -s 3840x1080 -s 1080x1920 npx themer -t wallpaper-circuits -o "$WALLPAPER_BASE" --color-set "$THEME_FILE_JSON" -s 3840x1080 -s 1080x1920
find "$WALLPAPER_DIR" -type f -iname '*.svg' | sed 'p;s/\.svg/\.png/' | sed 's/.*/"&"/' | xargs -n2 magick find "$WALLPAPER_DIR" -type f -iname '*.svg' | sed 'p;s/\.svg/\.png/' | sed 's/.*/"&"/' | xargs -n2 magick
hyprctl hyprpaper reload DP-1,"$WALLPAPER_PATH-3840x1080.png" hyprctl hyprpaper reload DP-2,"$WALLPAPER_PATH-3840x1080.png"
hyprctl hyprpaper reload DP-3,"$WALLPAPER_PATH-1080x1920.png" hyprctl hyprpaper reload DP-4,"$WALLPAPER_PATH-1080x1920.png"

View file

@ -96,6 +96,7 @@ with lib._elements; {
# Bluetooth manager # Bluetooth manager
blueman.enable = true; blueman.enable = true;
udev.packages = [pkgs.platformio-core.udev];
# Linux link via MQTT # Linux link via MQTT
lnxlink.enable = true; lnxlink.enable = true;
@ -220,15 +221,20 @@ with lib._elements; {
systemd.services.lactd.wantedBy = ["multi-user.target"]; systemd.services.lactd.wantedBy = ["multi-user.target"];
hardware = { hardware = {
amdgpu = { nvidia = {
opencl.enable = true; modesetting.enable = true;
overdrive.enable = true; powerManagement.enable = false;
# amdvlk = { powerManagement.finegrained = false;
# enable = true; open = true;
# support32Bit.enable = true; nvidiaSettings = true;
# }; package = config.boot.kernelPackages.nvidiaPackages.stable;
}; };
# amdgpu = {
# opencl.enable = true;
# overdrive.enable = true;
# };
bluetooth = { bluetooth = {
enable = true; enable = true;
powerOnBoot = true; powerOnBoot = true;

View file

@ -13,9 +13,9 @@
]; ];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"]; boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = ["amdgpu"]; boot.initrd.kernelModules = ["uinput"]; # nvidia
boot.kernelModules = ["kvm-amd" "uinput"]; # boot.initrd.kernelModules = ["amdgpu"];
boot.extraModulePackages = []; # boot.kernelModules = ["kvm-amd" "uinput"];
boot.supportedFilesystems = ["ntfs"]; boot.supportedFilesystems = ["ntfs"];
fileSystems."/mnt/games/ssd" = { fileSystems."/mnt/games/ssd" = {