2023-05-13 00:08:12 +02:00
|
|
|
{ ... }:
|
2020-06-13 13:34:16 +02:00
|
|
|
|
2023-05-13 00:08:12 +02:00
|
|
|
{
|
|
|
|
services.fluidsynth.enable = true;
|
|
|
|
services.fluidsynth.soundService = "pipewire-pulse";
|
|
|
|
services.fluidsynth.soundFont = "/path/to/soundFont";
|
|
|
|
services.fluidsynth.extraOptions = [ "--sample-rate 96000" ];
|
2020-06-13 13:34:16 +02:00
|
|
|
|
2023-05-13 00:08:12 +02:00
|
|
|
test.stubs.fluidsynth = { };
|
2020-06-13 13:34:16 +02:00
|
|
|
|
2023-05-13 00:08:12 +02:00
|
|
|
nmt.script = ''
|
|
|
|
serviceFile=home-files/.config/systemd/user/fluidsynth.service
|
2020-06-13 13:34:16 +02:00
|
|
|
|
2023-05-13 00:08:12 +02:00
|
|
|
assertFileExists $serviceFile
|
2021-07-31 13:05:27 +02:00
|
|
|
|
2023-05-13 00:08:12 +02:00
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'ExecStart=@fluidsynth@/bin/fluidsynth -a pulseaudio -si --sample-rate 96000 /path/to/soundFont'
|
2021-07-31 13:05:27 +02:00
|
|
|
|
2023-05-13 00:08:12 +02:00
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'After=pipewire-pulse.service'
|
|
|
|
|
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'BindsTo=pipewire-pulse.service'
|
|
|
|
'';
|
2020-06-13 13:34:16 +02:00
|
|
|
}
|