1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 04:09:47 +01:00
home-manager/tests/modules/programs/cavalier/cavalier-cava-settings.nix
2024-12-22 09:48:38 +01:00

35 lines
745 B
Nix

{ 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}
'';
}