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-cava-settings.nix

36 lines
745 B
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.cava = {
general = {
framerate = 60;
bars = 12;
autosens = 1;
sensitivity = 100;
};
input = { method = "pulse"; };
output = {
method = "raw";
raw_target = "/dev/stdout";
bit_format = "16bit";
channels = "stereo";
};
smoothing = {
monstercat = 1;
noise_reduction = 77;
};
};
};
nmt.script = ''
configFile="home-files/.config/Nickvision Cavalier/cava_config"
assertFileExists "$configFile"
assertFileContent "$configFile" ${./cavalier-cava-settings-expected.ini}
'';
}