depot/third_party/home-manager/tests/modules/services/fluidsynth/service.nix
Default email 72904c318c Project import generated by Copybara.
GitOrigin-RevId: 9bf1f40af124573a54fd208b1f539eb694ef31a6
2020-10-11 17:22:58 -07: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'
'';
};
}