Update FredOS-Gaming.nix

This commit is contained in:
ediblerope 2026-01-24 20:37:16 +00:00 committed by GitHub
parent 43a8337f53
commit d9b371bbe7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,14 +28,18 @@
# Enable AMD GPU overdrive for overclocking/undervolting
boot.kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" "acpi_osi=\"!Windows 2015\"" ];
# Session variables to make LSFG-VK work properly.
# Session variables
environment.sessionVariables = {
VK_ADD_LAYER_PATH = "${pkgs.lsfg-vk}/share/vulkan/implicit_layer.d";
# Force the layer to be visible everywhere
VK_INSTANCE_LAYERS = "VK_LAYER_LS_frame_generation";
};
# Create symlink for lsfg-vk layer - ADD SYSTEM-WIDE LOCATION
# Create symlinks in EVERY possible location
systemd.tmpfiles.rules = [
"L+ /usr/share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json - - - - ${pkgs.lsfg-vk}/share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json"
"d /usr/lib/x86_64-linux-gnu 0755 root root -"
"L+ /usr/lib/x86_64-linux-gnu/liblsfg-vk.so - - - - ${pkgs.lsfg-vk}/lib/liblsfg-vk.so"
];
systemd.user.tmpfiles.rules = [
@ -52,7 +56,11 @@
adwaita-icon-theme
lsfg-vk
];
extraLibraries = pkgs: [ pkgs.lsfg-vk ]; # ADD THIS
extraLibraries = pkgs: [ pkgs.lsfg-vk ];
extraProfile = ''
export VK_ADD_LAYER_PATH=${pkgs.lsfg-vk}/share/vulkan/implicit_layer.d:$VK_ADD_LAYER_PATH
export LD_LIBRARY_PATH=${pkgs.lsfg-vk}/lib:$LD_LIBRARY_PATH
'';
};
};
@ -73,3 +81,8 @@
};
};
}
```
**Steam Launch Options:**
```
mangohud %command%