mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 19:29:47 +01:00
35 lines
745 B
Nix
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}
|
|
'';
|
|
}
|