move systems into a separate directory
This commit is contained in:
parent
89f997e158
commit
18121a0f9f
9 changed files with 111 additions and 88 deletions
35
systems/fuji/nvidia.nix
Normal file
35
systems/fuji/nvidia.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{lib, ...}: {
|
||||
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
|
||||
|
||||
hardware.opengl = {
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
finegrained = false;
|
||||
};
|
||||
open = false;
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
|
||||
boot.extraModprobeConfig = ''
|
||||
options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
|
||||
'';
|
||||
|
||||
programs.hyprland.enableNvidiaPatches = true;
|
||||
|
||||
hm.wayland.windowManager.hyprland.settings.env = [
|
||||
"LIBVA_DRIVER_NAME,nvidia"
|
||||
"XDG_SESSION_TYPE,wayland"
|
||||
"GBM_BACKEND,nvidia-drm"
|
||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||
"WLR_NO_HARDWARE_CURSORS,1"
|
||||
"__EGL_VENDOR_LIBRARY_FILENAMES,/run/opengl-driver/share/glvnd/egl_vendor.d/10_nvidia.json"
|
||||
"NVD_BACKEND,direct"
|
||||
"MOZ_DISABLE_RDD_SANDBOX,1"
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue