configuration(nixos): update hyprland monitor
This commit is contained in:
parent
b71db22bba
commit
b2db5ff298
|
@ -76,11 +76,11 @@
|
|||
enable = true;
|
||||
hyprlock.enable = false;
|
||||
workspaceSettings = [
|
||||
"DP-1,1"
|
||||
"DP-1,3"
|
||||
"DP-1,5"
|
||||
"DP-1,7"
|
||||
"DP-1,9"
|
||||
"DP-2,1"
|
||||
"DP-2,3"
|
||||
"DP-2,5"
|
||||
"DP-2,7"
|
||||
"DP-2,9"
|
||||
"HDMI-A-1,2"
|
||||
"HDMI-A-1,4"
|
||||
"HDMI-A-1,6"
|
||||
|
@ -88,7 +88,7 @@
|
|||
"HDMI-A-1,10"
|
||||
];
|
||||
monitorSettings = [
|
||||
"DP-1,preferred,0x0,2"
|
||||
"DP-2,preferred,0x0,2"
|
||||
"HDMI-A-1,preferred,1920x0,1"
|
||||
];
|
||||
nvidia = true;
|
||||
|
|
|
@ -48,6 +48,6 @@
|
|||
user = "datahearth";
|
||||
};
|
||||
nvidia.enable = true;
|
||||
nvidia.sleepIssue = true;
|
||||
nvidia.sleepIssue = false;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ with lib;
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
boot.kernelParams = mkIf (cfg.sleepIssue) [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ];
|
||||
boot.kernelParams = [] ++ (if cfg.sleepIssue then ["nvidia.NVreg_PreserveVideoMemoryAllocations=1"] else []);
|
||||
hardware = {
|
||||
opengl = {
|
||||
enable = true;
|
||||
|
@ -21,7 +21,7 @@ with lib;
|
|||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = true;
|
||||
powerManagement.enable = mkIf (cfg.sleepIssue) true;
|
||||
powerManagement.enable = cfg.sleepIssue;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue