From 51fc478daee163a812e8dc2a22ba358f4c5df4bd Mon Sep 17 00:00:00 2001 From: Nojus Date: Fri, 18 Jul 2025 21:39:14 +0200 Subject: [PATCH] module.nix: deprecate losslessDLLFile option --- README.md | 8 ++------ module.nix | 21 ++++++++++++--------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b577523..fa5f8d2 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 environment variable ``LSFG_DLL_PATH=/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 ### 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: ```nix -services.lsfg-vk = { - enable = true; - # optional but recommended: - losslessDLLFile = "/Lossless.dll"; -}; +services.lsfg-vk.enable = true; ``` ### User install (manual) diff --git a/module.nix b/module.nix index 19d68c9..ee61e8f 100644 --- a/module.nix +++ b/module.nix @@ -19,15 +19,18 @@ in default = lsfg-vk; }; - 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 - ''; - }; + 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 + ''; + }; }; };