switch back to explicit sync?

This commit is contained in:
2025-01-13 11:02:57 +01:00
parent 076c892b4f
commit bbfec6ea9a
7 changed files with 54 additions and 59 deletions

View File

@@ -17,29 +17,29 @@
environment.gnome.excludePackages = (with pkgs; [
gnome-photos
gnome-tour
gnome.geary
geary
gedit
gnome.tali
gnome.gnome-music
gnome.cheese
tali
gnome-music
cheese
epiphany
gnome.gnome-calendar
gnome.gnome-maps
gnome.simple-scan
gnome.yelp
gnome.gnome-disk-utility
gnome.gnome-notes
gnome.gnome-weather
gnome-calendar
gnome-maps
simple-scan
yelp
gnome-disk-utility
gnome-notes
gnome-weather
gnome-secrets
gnome.gnome-characters
gnome.gnome-font-viewer
gnome.gnome-system-monitor
gnome-characters
gnome-font-viewer
gnome-system-monitor
gnome-text-editor
gnome-connections
gnome.gnome-clocks
gnome-clocks
baobab
gnome.gnome-contacts
gnome.gnome-logs
gnome-contacts
gnome-logs
]);
}

View File

@@ -7,23 +7,15 @@
{
# Enable OpenGL
hardware.opengl = {
hardware.graphics = {
enable = true;
};
# Load nvidia driver for Xorg and Wayland
services.xserver.videoDrivers = ["nvidia"];
# specify nvidia driver version
hardware.nvidia = {
# manually specify the driver version
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
version = "555.58.02";
sha256_64bit = "sha256-xctt4TPRlOJ6r5S54h5W6PT6/3Zy2R4ASNFPu8TSHKM=";
sha256_aarch64 = "sha256-8hyRiGB+m2hL3c9MDA/Pon+Xl6E788MZ50WrrAGUVuY=";
openSha256 = "sha256-8hyRiGB+m2hL3c9MDA/Pon+Xl6E788MZ50WrrAGUVuY=";
settingsSha256 = "sha256-ZpuVZybW6CFN/gz9rx+UJvQ715FZnAOYfHn5jt5Z2C8=";
persistencedSha256 = "sha256-xctt4TPRlOJ6r5S54h5W6PT6/3Zy2R4ASNFPu8TSHKM=";
};
# Modesetting is required.
modesetting.enable = true;
@@ -38,27 +30,30 @@
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
powerManagement.finegrained = false;
# the open source drivers are not compatible with the old 1050ti
open = false;
# Enable the Nvidia settings menu,
# accessible via `nvidia-settings`.
nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
version = "565.77"; # latest
sha256_64bit = "sha256-CnqnQsRrzzTXZpgkAtF7PbH9s7wbiTRNcM0SPByzFHw=";
sha256_aarch64 = "sha256-LSAYUnhfnK3rcuPe1dixOwAujSof19kNOfdRHE7bToE=";
openSha256 = "sha256-Fxo0t61KQDs71YA8u7arY+503wkAc1foaa51vi2Pl5I=";
settingsSha256 = "sha256-VUetj3LlOSz/LB+DDfMCN34uA4bNTTpjDrb6C6Iwukk=";
persistencedSha256 = "sha256-wnDjC099D8d9NJSp9D0CbsL+vfHXyJFYYgU3CwcqKww=";
};
prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
## See https://nixos.wiki/wiki/Nvidia
hardware.nvidia.prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
## Reverse PRIME synchronization
# reverseSync.enable = true;
# # Enable if using an external GPU
# allowExternalGpu = false;
## Alternatively enable offloading
offload = {
enable = true;
enableOffloadCmd = true;
};
};
}