mirror of
https://github.com/pabloaul/lsfg-vk-flake.git
synced 2025-08-28 03:16:30 -03:00
NixOS module: Remove
With an instruction on how to migrate usage over to `systemPackages`.
This commit is contained in:
parent
081cd66b13
commit
66f70e571a
3 changed files with 27 additions and 78 deletions
22
README.md
22
README.md
|
@ -6,10 +6,10 @@ Nix flake for using [Lossless Scaling's frame generation on Linux](https://githu
|
|||
> 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)
|
||||
### System-wide (NixOS)
|
||||
This approach will install an implicit layer to ``/etc/vulkan/implicit_layer.d/``
|
||||
|
||||
Add this to your flake inputs, output function and modules list:
|
||||
Add this to your flake inputs, output function and configuration:
|
||||
```nix
|
||||
inputs = {
|
||||
...
|
||||
|
@ -21,22 +21,14 @@ outputs = {nixpkgs, lsfg-vk-flake, ...}: {
|
|||
|
||||
nixosConfigurations.hostname = nixpkgs.lib.nixosSystem {
|
||||
...
|
||||
modules = [
|
||||
...
|
||||
lsfg-vk-flake.nixosModules.default
|
||||
environment.systemPackages = [
|
||||
lsfg-vk-flake.packages.${system}.lsfg-vk
|
||||
lsfg-vk-flake.packages.${system}.lsfg-vk-ui
|
||||
];
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
And then enable this in your system config:
|
||||
```nix
|
||||
services.lsfg-vk = {
|
||||
enable = true;
|
||||
ui.enable = true; # installs gui for configuring lsfg-vk
|
||||
};
|
||||
```
|
||||
|
||||
### User install (manual)
|
||||
1. Build the library:
|
||||
```bash
|
||||
|
@ -61,10 +53,10 @@ ENABLE_LSFG=1 vkcube
|
|||
|
||||
To confirm that it is working, look for output like this in the terminal: lsfg-vk(...): ...
|
||||
|
||||
You can also enable it per game on Steam by adding this to the launch options:
|
||||
You can also enable it per game on Steam by adding this to the launch options:
|
||||
```
|
||||
ENABLE_LSFG=1 %COMMAND%
|
||||
```
|
||||
|
||||
>[!NOTE]
|
||||
> If the environment variable is set but the program doesn't show any lsfg-vk output, you may need to add the application to your lsfg-vk configuration file at `~/.config/lsfg-vk/config.toml`. Read more about it in the [Wiki](https://github.com/PancakeTAS/lsfg-vk/wiki/Configuring-lsfg-vk)
|
||||
> If the environment variable is set but the program doesn't show any lsfg-vk output, you may need to add the application to your lsfg-vk configuration file at `~/.config/lsfg-vk/config.toml`. Read more about it in the [Wiki](https://github.com/PancakeTAS/lsfg-vk/wiki/Configuring-lsfg-vk)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue