mirror of
https://github.com/pabloaul/lsfg-vk-flake.git
synced 2025-08-28 11:26:29 -03:00
Compare commits
No commits in common. "de8696f83f94d04b2eb2e990a2348caed73948dd" and "0e4a10cb682203494c1c7fde54124d76c5c91b9b" have entirely different histories.
de8696f83f
...
0e4a10cb68
3 changed files with 21 additions and 42 deletions
22
default.nix
22
default.nix
|
@ -1,15 +1,14 @@
|
||||||
{
|
{ lib
|
||||||
lib,
|
, fetchFromGitHub
|
||||||
fetchFromGitHub,
|
, cmake
|
||||||
cmake,
|
, ninja
|
||||||
ninja,
|
, vulkan-headers
|
||||||
vulkan-headers,
|
, vulkan-loader
|
||||||
vulkan-loader,
|
, llvmPackages
|
||||||
llvmPackages,
|
, spirv-headers
|
||||||
spirv-headers,
|
}: let
|
||||||
}:
|
|
||||||
|
|
||||||
llvmPackages.stdenv.mkDerivation {
|
in llvmPackages.stdenv.mkDerivation {
|
||||||
pname = "lsfg-vk";
|
pname = "lsfg-vk";
|
||||||
version = "unstable-2025-07-14-83b869b";
|
version = "unstable-2025-07-14-83b869b";
|
||||||
|
|
||||||
|
@ -41,7 +40,6 @@ llvmPackages.stdenv.mkDerivation {
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Vulkan layer for frame generation (Requires Lossless Scaling install)";
|
|
||||||
homepage = "https://github.com/PancakeTAS/lsfg-vk/";
|
homepage = "https://github.com/PancakeTAS/lsfg-vk/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
outputs = { nixpkgs, ... }:
|
outputs = { nixpkgs, ... }: let
|
||||||
let
|
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
packages.${system}.default = pkgs.callPackage ./default.nix {};
|
packages.${system}.default = pkgs.callPackage ./default.nix {};
|
||||||
nixosModules.default = import ./module.nix;
|
nixosModules.default = import ./module.nix;
|
||||||
};
|
};
|
||||||
|
|
19
module.nix
19
module.nix
|
@ -1,9 +1,4 @@
|
||||||
{
|
{ config, lib, pkgs, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
cfg = config.services.lsfg-vk;
|
cfg = config.services.lsfg-vk;
|
||||||
lsfg-vk = pkgs.callPackage ./default.nix {};
|
lsfg-vk = pkgs.callPackage ./default.nix {};
|
||||||
|
@ -18,16 +13,6 @@ in
|
||||||
description = "The lsfg-vk package to use";
|
description = "The lsfg-vk package to use";
|
||||||
default = lsfg-vk;
|
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
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -37,7 +22,5 @@ in
|
||||||
# Installs the Vulkan implicit layer system-wide
|
# Installs the Vulkan implicit layer system-wide
|
||||||
environment.etc."vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json".source =
|
environment.etc."vulkan/implicit_layer.d/VkLayer_LS_frame_generation.json".source =
|
||||||
"${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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue