fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Robert Helgessontests: various minor cleanupseec22729

master
681 B25 linesraw
1{ ... }:
2
3{
4  services.fluidsynth.enable = true;
5  services.fluidsynth.soundService = "pipewire-pulse";
6  services.fluidsynth.soundFont = "/path/to/soundFont";
7  services.fluidsynth.extraOptions = [ "--sample-rate 96000" ];
8
9  test.stubs.fluidsynth = { };
10
11  nmt.script = ''
12    serviceFile=home-files/.config/systemd/user/fluidsynth.service
13
14    assertFileExists $serviceFile
15
16    assertFileContains $serviceFile \
17      'ExecStart=@fluidsynth@/bin/fluidsynth -a pulseaudio -si --sample-rate 96000 /path/to/soundFont'
18
19    assertFileContains $serviceFile \
20      'After=pipewire-pulse.service'
21
22    assertFileContains $serviceFile \
23      'BindsTo=pipewire-pulse.service'
24  '';
25}