put gpu cache for intel gpu systems in tmp

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-17 09:07:36 +01:00
parent 85240ae2be
commit efde7e99b5

View file

@ -87,6 +87,20 @@
"L /persistent${config.xdg.dataHome}/Code/DawnWebGPUCache - - - - ${config.xdg.cacheHome}/Code/DawnWebGPUCache"
"L /persistent${config.xdg.dataHome}/Code/GPUCache - - - - ${config.xdg.cacheHome}/Code/GPUCache"
])
(lib.mkIf (!systemConfig.isIntelGPU) [
# GPU Cache sometimes breaks for electron apps on intel
"d /persistent${config.xdg.cacheHome}/Code/DawnWebGPUCache - - - - -"
"d /persistent${config.xdg.cacheHome}/Code/GPUCache - - - - -"
"L /persistent${config.xdg.dataHome}/Code/DawnWebGPUCache - - - - ${config.xdg.cacheHome}/Code/DawnWebGPUCache"
"L /persistent${config.xdg.dataHome}/Code/GPUCache - - - - ${config.xdg.cacheHome}/Code/GPUCache"
])
(lib.mkIf (systemConfig.isIntelGPU) [
# GPU Cache sometimes breaks for electron apps on intel
"d /tmp${config.xdg.cacheHome}/Code/DawnWebGPUCache - - - - -"
"d /tmp${config.xdg.cacheHome}/Code/GPUCache - - - - -"
"L /persistent${config.xdg.dataHome}/Code/DawnWebGPUCache - - - - /tmp${config.xdg.cacheHome}/Code/DawnWebGPUCache"
"L /persistent${config.xdg.dataHome}/Code/GPUCache - - - - /tmp${config.xdg.cacheHome}/Code/GPUCache"
])
];
home.persistence.default.directories = [
".local/share/Code"