vinegar: add module (#6494)
This commit is contained in:
parent
0c0b0ac8af
commit
3c82285348
7 changed files with 104 additions and 0 deletions
4
tests/modules/programs/vinegar/default.nix
Normal file
4
tests/modules/programs/vinegar/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
vinegar-empty-settings = ./empty-settings.nix;
|
||||
vinegar-example-settings = ./example-settings.nix;
|
||||
}
|
||||
7
tests/modules/programs/vinegar/empty-settings.nix
Normal file
7
tests/modules/programs/vinegar/empty-settings.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
programs.vinegar.enable = true;
|
||||
|
||||
nmt.script = ''
|
||||
assertPathNotExists home-files/.config/vinegar/config.toml
|
||||
'';
|
||||
}
|
||||
13
tests/modules/programs/vinegar/example-config-expected.toml
Normal file
13
tests/modules/programs/vinegar/example-config-expected.toml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[env]
|
||||
WINEFSYNC = "1"
|
||||
|
||||
[studio]
|
||||
dxvk = false
|
||||
renderer = "Vulkan"
|
||||
|
||||
[studio.env]
|
||||
DXVK_HUD = "0"
|
||||
MANGOHUD = "1"
|
||||
|
||||
[studio.fflags]
|
||||
DFIntTaskSchedulerTargetFps = 144
|
||||
28
tests/modules/programs/vinegar/example-settings.nix
Normal file
28
tests/modules/programs/vinegar/example-settings.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ config, ... }: {
|
||||
programs.vinegar = {
|
||||
enable = true;
|
||||
package = config.lib.test.mkStubPackage { };
|
||||
|
||||
settings = {
|
||||
env.WINEFSYNC = "1";
|
||||
|
||||
studio = {
|
||||
dxvk = false;
|
||||
renderer = "Vulkan";
|
||||
|
||||
fflags.DFIntTaskSchedulerTargetFps = 144;
|
||||
|
||||
env = {
|
||||
DXVK_HUD = "0";
|
||||
MANGOHUD = "1";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent \
|
||||
home-files/.config/vinegar/config.toml \
|
||||
${./example-config-expected.toml}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue