2020-10-12 00:22:58 +00:00
|
|
|
{ config, pkgs, ... }: {
|
|
|
|
config = {
|
|
|
|
services.fluidsynth.enable = true;
|
2021-11-04 16:42:44 +00:00
|
|
|
services.fluidsynth.soundService = "pipewire-pulse";
|
2020-10-12 00:22:58 +00:00
|
|
|
services.fluidsynth.soundFont = "/path/to/soundFont";
|
|
|
|
services.fluidsynth.extraOptions = [ "--sample-rate 96000" ];
|
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
test.stubs.fluidsynth = { };
|
2020-10-12 00:22:58 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
serviceFile=home-files/.config/systemd/user/fluidsynth.service
|
|
|
|
|
|
|
|
assertFileExists $serviceFile
|
|
|
|
|
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'ExecStart=@fluidsynth@/bin/fluidsynth -a pulseaudio -si --sample-rate 96000 /path/to/soundFont'
|
2021-11-04 16:42:44 +00:00
|
|
|
|
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'After=pipewire-pulse.service'
|
|
|
|
|
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'BindsTo=pipewire-pulse.service'
|
2020-10-12 00:22:58 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|