Possible fix for the Nvidia Driver
This commit is contained in:
parent
b411001d76
commit
10f377c490
3 changed files with 23 additions and 22 deletions
|
@ -87,11 +87,12 @@
|
||||||
./users/kaitotlex
|
./users/kaitotlex
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland.settings.monitor = [
|
wayland.windowManager.hyprland.settings.monitor = [
|
||||||
"eDP-1,1920x1200@120,0x0,.90"
|
"eDP-1,1920x1200@120,0x0,1"
|
||||||
|
"HDMI-A-1,1920x1080@165,1920x0,1"
|
||||||
];
|
];
|
||||||
programs.git.signing = {
|
programs.git.signing = {
|
||||||
signByDefault = true;
|
signByDefault = true;
|
||||||
key = "BC04C0C14AEDA705B8FBACE8C5F52A3C0F3B4A77";
|
key = "42F52D76F1B15B8D997E2AEE8AB934746F475D0B";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
||||||
virtualisation.waydroid.enable = true;
|
virtualisation.waydroid.enable = true;
|
||||||
#boot.kernelPackages = pkgs.linuxPackages_5_15;
|
#boot.kernelPackages = pkgs.linuxPackages_5_15;
|
||||||
#systemdefaults
|
#systemdefaults
|
||||||
|
@ -28,21 +29,23 @@
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"mem_sleep_default=deep"
|
"mem_sleep_default=deep"
|
||||||
];
|
];
|
||||||
systemd.sleep.extraConfig = ''
|
# systemd.sleep.extraConfig = ''
|
||||||
AllowSuspend=yes
|
# AllowSuspend=yes
|
||||||
AllowHibernation=yes
|
# AllowHibernation=yes
|
||||||
AllowHybridSleep=yes
|
# AllowHybridSleep=yes
|
||||||
AllowSuspendThenHibernate=yes
|
# AllowSuspendThenHibernate=yes
|
||||||
'';
|
# '';
|
||||||
|
|
||||||
#Nvidia Hardware begins
|
#Nvidia Hardware begins
|
||||||
services.xserver.videoDrivers = [
|
services.xserver.videoDrivers = [
|
||||||
"nvidia"
|
|
||||||
"amdgpu"
|
"amdgpu"
|
||||||
|
"nvidia"
|
||||||
];
|
];
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
hardware.graphics.enable32Bit = true;
|
hardware.graphics.enable32Bit = true;
|
||||||
|
hardware.graphics.extraPackages = with pkgs; [
|
||||||
|
amdvlk
|
||||||
|
];
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
# custom option defined in graphics/default.nix
|
# custom option defined in graphics/default.nix
|
||||||
#usePatchedAquamarine = true;
|
#usePatchedAquamarine = true;
|
||||||
|
@ -58,7 +61,7 @@
|
||||||
|
|
||||||
# Fine-grained power management. Turns off GPU when not in use.
|
# Fine-grained power management. Turns off GPU when not in use.
|
||||||
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||||
powerManagement.finegrained = lib.mkForce false;
|
powerManagement.finegrained = lib.mkForce true;
|
||||||
|
|
||||||
# Use the NVidia open source kernel module (not to be confused with the
|
# Use the NVidia open source kernel module (not to be confused with the
|
||||||
# independent third-party "nouveau" open source driver).
|
# independent third-party "nouveau" open source driver).
|
||||||
|
@ -67,7 +70,7 @@
|
||||||
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
|
||||||
# Only available from driver 515.43.04+
|
# Only available from driver 515.43.04+
|
||||||
# Currently alpha-quality/buggy, so false is currently the recommended setting.
|
# Currently alpha-quality/buggy, so false is currently the recommended setting.
|
||||||
open = lib.mkForce true;
|
open = lib.mkForce false;
|
||||||
|
|
||||||
# Enable the Nvidia settings menu,
|
# Enable the Nvidia settings menu,
|
||||||
# accessible via `nvidia-settings`.
|
# accessible via `nvidia-settings`.
|
||||||
|
@ -77,14 +80,11 @@
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
#Power Saving Features
|
#Power Saving Features
|
||||||
prime = {
|
prime = {
|
||||||
offload = {
|
offload.enable = lib.mkForce true;
|
||||||
enable = true;
|
|
||||||
enableOffloadCmd = true;
|
|
||||||
};
|
|
||||||
# Make sure to use the correct Bus ID values for your system!
|
# Make sure to use the correct Bus ID values for your system!
|
||||||
#intelBusId = "PCI:";
|
#intelBusId = "PCI:";
|
||||||
nvidiaBusId = "PCI:01:00:0";
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
amdgpuBusId = "PCI:08:00:0";
|
amdgpuBusId = "PCI:8:0:0";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,20 +8,20 @@
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/50c34d14-4b3a-483c-874e-b6412a474cfe";
|
{ device = "/dev/disk/by-uuid/def95f35-9630-4015-9e21-97d9518a014d";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-efb1b312-b89c-493e-952a-f70fc2ab0fbf".device = "/dev/disk/by-uuid/efb1b312-b89c-493e-952a-f70fc2ab0fbf";
|
boot.initrd.luks.devices."luks-c69579ed-9b9c-4435-b329-e5c95c945823".device = "/dev/disk/by-uuid/c69579ed-9b9c-4435-b329-e5c95c945823";
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-uuid/1826-F6B8";
|
{ device = "/dev/disk/by-uuid/02A5-BCDF";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue