2020-06-13 11:34:16 +00:00
|
|
|
{ config, pkgs, ... }: {
|
|
|
|
config = {
|
|
|
|
services.fluidsynth.enable = true;
|
2021-07-31 11:05:27 +00:00
|
|
|
services.fluidsynth.soundService = "pipewire-pulse";
|
2020-06-13 11:34:16 +00: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 11:05:27 +00:00
|
|
|
|
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'After=pipewire-pulse.service'
|
|
|
|
|
|
|
|
assertFileContains $serviceFile \
|
|
|
|
'BindsTo=pipewire-pulse.service'
|
2020-06-13 11:34:16 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|