Skip to content

Commit 8ff13e9

Browse files
committed
home/308: trying to fix nvidia
1 parent 1328d49 commit 8ff13e9

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

hosts/308/boot.nix

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
};
2424
};
2525

26-
blacklistedKernelModules = ["uvcvideo"];
26+
blacklistedKernelModules = [
27+
"nouveau"
28+
"uvcvideo"
29+
];
2730
kernelParams = [
2831
"quiet"
2932
"acpi_enforce_resources=lax" # needed for openrgb in aorus MOBOs

hosts/308/hardware.nix

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
config,
33
lib,
4+
pkgs,
45
...
56
}: {
67
hardware = {
@@ -11,8 +12,12 @@
1112
open = false;
1213
modesetting.enable = true;
1314
powerManagement.enable = true;
15+
nvidiaPersistenced = true;
16+
forceFullCompositionPipeline = true;
1417
};
1518

19+
graphics.extraPackages = with pkgs; [nvidia-vaapi-driver];
20+
1621
enableRedistributableFirmware = lib.mkDefault true;
1722
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
1823
};

hosts/308/programs.nix

+14-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@
44
sway.enable = true;
55
};
66

7-
#environment.defaultPackages = with pkgs; [
8-
# xfce.xfce4-systemload-plugin
9-
#];
7+
environment = {
8+
systemPackages = with pkgs; [
9+
nvtopPackages.nvidia # gpu monitor
10+
mesa
11+
vulkan-tools
12+
vulkan-loader
13+
vulkan-validation-layers
14+
vulkan-extension-layer
15+
libva
16+
libva-utils
17+
18+
# xfce.xfce4-systemload-plugin
19+
];
20+
};
1021
}

0 commit comments

Comments
 (0)