2020-06-13 13:34:16 +02:00
|
|
|
{ config, pkgs, ... }: {
|
|
|
|
config = {
|
|
|
|
services.fluidsynth.enable = true;
|
2021-07-31 13:05:27 +02:00
|
|
|
services.fluidsynth.soundService = "pipewire-pulse";
|
2020-06-13 13:34:16 +02:00
|
|
|
services.fluidsynth.soundFont = "/path/to/soundFont";
|
|
|
|
services.fluidsynth.extraOptions = [ "--sample-rate 96000" ];
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
fluidsynth = pkgs.writeScriptBin "dummy-fluidsynth" "" // {
|
|
|
|
outPath = "@fluidsynth@";
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
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-07-31 13:05:27 +02:00
|
|
|
|
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'After=pipewire-pulse.service'
|
|
|
|
|
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'BindsTo=pipewire-pulse.service'
|
2020-06-13 13:34:16 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|