1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00
home-manager/tests/modules/programs/cavalier/cavalier-general-settings.nix

60 lines
1.3 KiB
Nix
Raw Normal View History

2024-12-18 16:42:28 +01:00
{ config, pkgs, ... }:
{
programs.cavalier = {
enable = true;
package = config.lib.test.mkStubPackage { };
settings.general = {
WindowWidth = 1908;
WindowHeight = 521;
WindowMaximized = false;
AreaMargin = 0;
AreaOffsetX = 0;
AreaOffsetY = 0;
Borderless = false;
SharpCorners = false;
ShowControls = false;
AutohideHeader = false;
Framerate = 60;
BarPairs = 6;
Autosens = true;
Sensitivity = 10;
Stereo = true;
Monstercat = true;
NoiseReduction = 0.77;
ReverseOrder = true;
Direction = 1;
ItemsOffset = 0.1;
ItemsRoundness = 0.5;
Filling = true;
LinesThickness = 5;
Mode = 0;
Mirror = 0;
ReverseMirror = false;
InnerRadius = 0.5;
Rotation = 0;
ColorProfiles = [{
Name = "Default";
FgColors = [ "#ff3584e4" ];
BgColors = [ "#ff242424" ];
Theme = 1;
}];
ActiveProfile = 0;
BgImageIndex = -1;
BgImageScale = 1;
BgImageAlpha = 1;
FgImageIndex = -1;
FgImageScale = 1;
FgImageAlpha = 1;
};
};
nmt.script = ''
configFile="home-files/.config/Nickvision Cavalier/config.json"
assertFileExists "$configFile"
assertFileContent "$configFile" ${./cavalier-general-settings-expected.json}
'';
}