mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
25 lines
668 B
Nix
25 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'
|
||
|
'';
|
||
|
};
|
||
|
}
|