Another attempt at fixing nvidia
This commit is contained in:
parent
55664b184e
commit
3f9072c977
1 changed files with 39 additions and 13 deletions
|
@ -54,9 +54,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
# boot.extraModulePackages = [ pkgs.linuxPackages.nvidia_x11 ];
|
||||
|
||||
|
||||
fileSystems."/mnt/Data" =
|
||||
{ device = "/dev/sda4";
|
||||
fsType = "ntfs";
|
||||
|
@ -131,18 +129,46 @@
|
|||
};
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
# services.xserver.enable = true;
|
||||
# services.xserver.layout = "us";
|
||||
# services.xserver.xkbOptions = "eurosign:e";
|
||||
services.xserver.videoDrivers = [ "intel" "nvidia" ];
|
||||
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
# boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11_beta ];
|
||||
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
hardware.nvidia.optimus_prime.enable = false;
|
||||
# hardware.nvidia.optimus_prime.enable = false;
|
||||
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
|
||||
hardware.nvidia.optimus_prime.nvidiaBusId = "PCI:1:0:0";
|
||||
# hardware.nvidia.optimus_prime.nvidiaBusId = "PCI:1:0:0";
|
||||
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
|
||||
hardware.nvidia.optimus_prime.intelBusId = "PCI:0:2:0";
|
||||
hardware.nvidia.modesetting.enable = true;
|
||||
# hardware.nvidia.optimus_prime.intelBusId = "PCI:0:2:0";
|
||||
# hardware.nvidia.modesetting.enable = true;
|
||||
|
||||
hardware = {
|
||||
nvidia = {
|
||||
modesetting = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
optimus_prime = {
|
||||
enable = false;
|
||||
# values are from lspci
|
||||
# try lspci | grep -P 'VGA|3D'
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
videoDrivers = [
|
||||
"intel" "nvidiaBeta" # nvidia should work fine as well
|
||||
# "modesetting"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Enable touchpad support.
|
||||
services.xserver.libinput.enable = true;
|
||||
|
@ -284,9 +310,9 @@
|
|||
environment.variables.JAVA_HOME = "${pkgs.jdk.home}/lib/jetbrains.jdk";
|
||||
|
||||
# virtualBox
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
users.extraGroups.vboxusers.members = [ "payas" ];
|
||||
virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||
# virtualisation.virtualbox.host.enable = true;
|
||||
# users.extraGroups.vboxusers.members = [ "payas" ];
|
||||
# virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||
|
||||
# services.syncthing = {
|
||||
# enable = true;
|
||||
|
|
Reference in a new issue