1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +01:00
home-manager/tests/modules/services/fluidsynth/service.nix
Vincent Breitmoser b0e8a1569e
fluidsynth: add module
Fluidsynth is a real-time MIDI synthesizer based on the SoundFont 2
format.

PR #1326
2020-06-14 15:30:51 +02:00

24 lines
668 B
Nix

{ config, pkgs, ... }: {
config = {
services.fluidsynth.enable = true;
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'
'';
};
}