diff --git a/README.md b/README.md index fa5f8d2..b577523 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Nix flake for using [Lossless Scaling's frame generation on Linux](https://githu >[!IMPORTANT] > 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 correct path in the lsfg-vk config. +> In case it is not installed on the default Steam drive, you may want to consider setting the environment variable ``LSFG_DLL_PATH=/Lossless.dll`` ## Installation ### System-wide (NixOS module) @@ -31,7 +31,11 @@ outputs = {nixpkgs, lsfg-vk-flake, ...}: { And then you should be able to enable this in your system config using: ```nix -services.lsfg-vk.enable = true; +services.lsfg-vk = { + enable = true; + # optional but recommended: + losslessDLLFile = "/Lossless.dll"; +}; ``` ### User install (manual) diff --git a/default.nix b/default.nix index 58317ce..b8fede1 100644 --- a/default.nix +++ b/default.nix @@ -7,23 +7,17 @@ vulkan-loader, llvmPackages, spirv-headers, - libX11, - libXrandr, - libXinerama, - libXcursor, - libXi, - libglvnd, }: llvmPackages.stdenv.mkDerivation { pname = "lsfg-vk"; - version = "unstable-2025-07-18-53b4438"; + version = "unstable-2025-07-14-83b869b"; src = fetchFromGitHub { owner = "PancakeTAS"; repo = "lsfg-vk"; - rev = "53b4438a2a567c26d739c856329c1a4d13aa1968"; - hash = "sha256-Ze4PBu3W7wKbYAMwQIdV2LBI8xWpYWvNJ3qIId2ByPU="; + rev = "83b869b0c4d4cd4da2e760126242c6ed76bafec8"; + hash = "sha256-LN6DkLN6pMmYRaj+TsAL3PLqINMeYOhQ2Kw16bRF/Q4="; fetchSubmodules = true; }; @@ -44,12 +38,6 @@ llvmPackages.stdenv.mkDerivation { vulkan-headers vulkan-loader spirv-headers - libX11 - libXrandr - libXinerama - libXcursor - libXi - libglvnd ]; meta = with lib; { diff --git a/module.nix b/module.nix index ee61e8f..19d68c9 100644 --- a/module.nix +++ b/module.nix @@ -19,18 +19,15 @@ in default = lsfg-vk; }; - 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; - default = null; - example = "/home/user/games/Lossless Scaling/Lossless.dll"; - description = '' - Sets the LSFG_DLL_PATH environment variable. - Required if Lossless Scaling isn't installed in a standard location - ''; - }; + losslessDLLFile = lib.mkOption { + type = with lib.types; nullOr str; + default = null; + example = "/home/user/games/Lossless Scaling/Lossless.dll"; + description = '' + Sets the LSFG_DLL_PATH environment variable. + Required if Lossless Scaling isn't installed in a standard location + ''; + }; }; };