mirror of
https://github.com/pabloaul/lsfg-vk-flake.git
synced 2025-08-27 19:06:28 -03:00
Merge pull request #4 from exalexi/main
module.nix: add configFile option
This commit is contained in:
commit
ec1b66adcb
1 changed files with 13 additions and 0 deletions
13
module.nix
13
module.nix
|
@ -31,6 +31,17 @@ in
|
||||||
Required if Lossless Scaling isn't installed in a standard location
|
Required if Lossless Scaling isn't installed in a standard location
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
configFile = lib.mkOption
|
||||||
|
{
|
||||||
|
type = with lib.types; nullOr str;
|
||||||
|
default = null;
|
||||||
|
example = "/home/user/.config/lsfg-vk/conf.toml";
|
||||||
|
description = ''
|
||||||
|
Sets the LSFG_CONFIG environment variable.
|
||||||
|
Required if the lsfg-vk configuration file isn't stored at the standard location
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -42,5 +53,7 @@ in
|
||||||
"${cfg.package}/share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json";
|
"${cfg.package}/share/vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json";
|
||||||
|
|
||||||
environment.sessionVariables.LSFG_DLL_PATH = lib.mkIf (cfg.losslessDLLFile != null) cfg.losslessDLLFile;
|
environment.sessionVariables.LSFG_DLL_PATH = lib.mkIf (cfg.losslessDLLFile != null) cfg.losslessDLLFile;
|
||||||
|
|
||||||
|
environment.sessionVariables.LSFG_CONFIG = lib.mkIf (cfg.configFile != null) cfg.configFile;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue