mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
25 lines
681 B
Nix
25 lines
681 B
Nix
{ ... }:
|
|
|
|
{
|
|
services.fluidsynth.enable = true;
|
|
services.fluidsynth.soundService = "pipewire-pulse";
|
|
services.fluidsynth.soundFont = "/path/to/soundFont";
|
|
services.fluidsynth.extraOptions = [ "--sample-rate 96000" ];
|
|
|
|
test.stubs.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'
|
|
|
|
assertFileContains $serviceFile \
|
|
'After=pipewire-pulse.service'
|
|
|
|
assertFileContains $serviceFile \
|
|
'BindsTo=pipewire-pulse.service'
|
|
'';
|
|
}
|