mirror of
https://github.com/pabloaul/lsfg-vk-flake.git
synced 2025-08-28 03:16:30 -03:00
Compare commits
2 commits
2fcdb54c82
...
51fc478dae
Author | SHA1 | Date | |
---|---|---|---|
|
51fc478dae | ||
|
955774220f |
3 changed files with 29 additions and 18 deletions
|
@ -3,7 +3,7 @@ Nix flake for using [Lossless Scaling's frame generation on Linux](https://githu
|
||||||
|
|
||||||
>[!IMPORTANT]
|
>[!IMPORTANT]
|
||||||
> You need to have Lossless Scaling installed on Steam!
|
> You need to have Lossless Scaling installed on Steam!
|
||||||
> In case it is not installed on the default Steam drive, you may want to consider setting the environment variable ``LSFG_DLL_PATH=<ABSOLUTE_PATH_TO>/Lossless.dll``
|
> In case it is not installed on the default Steam drive, you may want to consider setting the correct path in the lsfg-vk config.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
### System-wide (NixOS module)
|
### System-wide (NixOS module)
|
||||||
|
@ -31,11 +31,7 @@ outputs = {nixpkgs, lsfg-vk-flake, ...}: {
|
||||||
|
|
||||||
And then you should be able to enable this in your system config using:
|
And then you should be able to enable this in your system config using:
|
||||||
```nix
|
```nix
|
||||||
services.lsfg-vk = {
|
services.lsfg-vk.enable = true;
|
||||||
enable = true;
|
|
||||||
# optional but recommended:
|
|
||||||
losslessDLLFile = "<ABSOLUTE_PATH_TO>/Lossless.dll";
|
|
||||||
};
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### User install (manual)
|
### User install (manual)
|
||||||
|
|
18
default.nix
18
default.nix
|
@ -7,17 +7,23 @@
|
||||||
vulkan-loader,
|
vulkan-loader,
|
||||||
llvmPackages,
|
llvmPackages,
|
||||||
spirv-headers,
|
spirv-headers,
|
||||||
|
libX11,
|
||||||
|
libXrandr,
|
||||||
|
libXinerama,
|
||||||
|
libXcursor,
|
||||||
|
libXi,
|
||||||
|
libglvnd,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
llvmPackages.stdenv.mkDerivation {
|
llvmPackages.stdenv.mkDerivation {
|
||||||
pname = "lsfg-vk";
|
pname = "lsfg-vk";
|
||||||
version = "unstable-2025-07-14-83b869b";
|
version = "unstable-2025-07-18-53b4438";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "PancakeTAS";
|
owner = "PancakeTAS";
|
||||||
repo = "lsfg-vk";
|
repo = "lsfg-vk";
|
||||||
rev = "83b869b0c4d4cd4da2e760126242c6ed76bafec8";
|
rev = "53b4438a2a567c26d739c856329c1a4d13aa1968";
|
||||||
hash = "sha256-LN6DkLN6pMmYRaj+TsAL3PLqINMeYOhQ2Kw16bRF/Q4=";
|
hash = "sha256-Ze4PBu3W7wKbYAMwQIdV2LBI8xWpYWvNJ3qIId2ByPU=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -38,6 +44,12 @@ llvmPackages.stdenv.mkDerivation {
|
||||||
vulkan-headers
|
vulkan-headers
|
||||||
vulkan-loader
|
vulkan-loader
|
||||||
spirv-headers
|
spirv-headers
|
||||||
|
libX11
|
||||||
|
libXrandr
|
||||||
|
libXinerama
|
||||||
|
libXcursor
|
||||||
|
libXi
|
||||||
|
libglvnd
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -19,7 +19,10 @@ in
|
||||||
default = lsfg-vk;
|
default = lsfg-vk;
|
||||||
};
|
};
|
||||||
|
|
||||||
losslessDLLFile = lib.mkOption {
|
losslessDLLFile =
|
||||||
|
lib.warn "losslessDLLFile is deprecated and will only be used by lsfg-vk if LSFG_LEGACY is set."
|
||||||
|
lib.mkOption
|
||||||
|
{
|
||||||
type = with lib.types; nullOr str;
|
type = with lib.types; nullOr str;
|
||||||
default = null;
|
default = null;
|
||||||
example = "/home/user/games/Lossless Scaling/Lossless.dll";
|
example = "/home/user/games/Lossless Scaling/Lossless.dll";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue