Compare commits

...

13 Commits

Author SHA1 Message Date
chn
62e405196e nvidia GLVidHeapReuseRatio 2025-07-25 08:58:58 +08:00
chn
72d2707fa0 Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable 2025-07-15 12:30:52 +08:00
chn
f6b1f449aa Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable 2025-06-22 09:00:37 +08:00
chn
5d04a9f5d5 Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable 2025-05-11 07:50:44 +08:00
chn
cf2bbd1c49 Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable 2025-04-26 09:52:41 +08:00
chn
d17ec55b41 Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable
# Conflicts:
#	pkgs/development/haskell-modules/hackage-packages.nix
2025-04-06 19:34:32 +08:00
Sumner Evans
27e2faf73d matrix-synapse: 1.126.0 -> 1.127.1
https://github.com/element-hq/synapse/releases/tag/v1.127.0
https://github.com/element-hq/synapse/releases/tag/v1.127.1

Signed-off-by: Sumner Evans <me@sumnerevans.com>
2025-03-27 10:53:37 +08:00
chn
dda4d8355b update phonopy 2025-03-25 20:32:32 +08:00
chn
6e78d5d6eb Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable 2025-03-16 18:43:17 +08:00
chn
a9c5fac08f Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable 2025-03-05 11:02:29 +08:00
chn
fcad4c9e90 Reapply "fix hackage"
This reverts commit 84e4959013.
2025-02-26 09:59:06 +08:00
chn
84e4959013 Revert "fix hackage"
This reverts commit 12fbbac878.
2025-02-23 22:57:10 +08:00
chn
12fbbac878 fix hackage 2025-02-16 17:41:48 +08:00

View File

@@ -282,6 +282,12 @@ in
It also drastically increases the time the driver needs to clock down after load
'';
disableOpenglMemoryReuse = lib.mkEnableOption ''
disable OpenGL memory reuse,
by setting `GLVidHeapReuseRatio` to `0` for all applications in NVIDIA application profiles.
This is useful to work around issues with excessive video memory usage under wayland.
'';
package = lib.mkOption {
default =
config.boot.kernelPackages.nvidiaPackages."${if cfg.datacenter.enable then "dc" else "stable"}";
@@ -464,6 +470,11 @@ in
assertion = cfg.dynamicBoost.enable -> lib.versionAtLeast nvidia_x11.version "510.39.01";
message = "NVIDIA's Dynamic Boost feature only exists on versions >= 510.39.01";
}
{
assertion = cfg.disableOpenglMemoryReuse -> lib.versionAtLeast nvidia_x11.version "565.77";
message = "GLVidHeapReuseRatio is only supported on versions >= 565.77";
}
];
# If Optimus/PRIME is enabled, we:
@@ -559,6 +570,13 @@ in
source = "${nvidia_x11.bin}/share/nvidia/nvidia-application-profiles-rc";
};
"nvidia/nvidia-application-profiles-rc.d/vram" = lib.mkIf cfg.disableOpenglMemoryReuse {
source = pkgs.writeText "save-vram" (builtins.toJSON {
rules = [{ pattern = { feature = "true"; matches = ""; }; profile = "save-vram"; }];
profiles = [{ name = "save-vram"; settings = [{ key = "GLVidHeapReuseRatio"; value = 0; }]; }];
});
};
# 'nvidia_x11' installs it's files to /run/opengl-driver/...
"egl/egl_external_platform.d".source = "/run/opengl-driver/share/egl/egl_external_platform.d/";
};