Update FredOS-Gaming.nix
This commit is contained in:
parent
43a8337f53
commit
d9b371bbe7
1 changed files with 16 additions and 3 deletions
|
|
@ -28,14 +28,18 @@
|
||||||
# Enable AMD GPU overdrive for overclocking/undervolting
|
# Enable AMD GPU overdrive for overclocking/undervolting
|
||||||
boot.kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" "acpi_osi=\"!Windows 2015\"" ];
|
boot.kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" "acpi_osi=\"!Windows 2015\"" ];
|
||||||
|
|
||||||
# Session variables to make LSFG-VK work properly.
|
# Session variables
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
VK_ADD_LAYER_PATH = "${pkgs.lsfg-vk}/share/vulkan/implicit_layer.d";
|
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 = [
|
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"
|
"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 = [
|
systemd.user.tmpfiles.rules = [
|
||||||
|
|
@ -52,7 +56,11 @@
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
lsfg-vk
|
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%
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue