2023-05-12 22:08:12 +00:00
|
|
|
{ ... }:
|
2020-06-13 11:34:16 +00:00
|
|
|
|
2023-05-12 22:08:12 +00: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 11:34:16 +00:00
|
|
|
|
2023-05-12 22:08:12 +00:00
|
|
|
test.stubs.fluidsynth = { };
|
2020-06-13 11:34:16 +00:00
|
|
|
|
2023-05-12 22:08:12 +00:00
|
|
|
nmt.script = ''
|
|
|
|
serviceFile=home-files/.config/systemd/user/fluidsynth.service
|
2020-06-13 11:34:16 +00:00
|
|
|
|
2023-05-12 22:08:12 +00:00
|
|
|
assertFileExists $serviceFile
|
2021-07-31 11:05:27 +00:00
|
|
|
|
2023-05-12 22:08:12 +00:00
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'ExecStart=@fluidsynth@/bin/fluidsynth -a pulseaudio -si --sample-rate 96000 /path/to/soundFont'
|
2021-07-31 11:05:27 +00:00
|
|
|
|
2023-05-12 22:08:12 +00:00
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'After=pipewire-pulse.service'
|
|
|
|
|
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'BindsTo=pipewire-pulse.service'
|
|
|
|
'';
|
2020-06-13 11:34:16 +00:00
|
|
|
}
|