nixcfg/homeManagerModules/userServices/easyeffects/default.nix
2024-04-07 22:16:33 -04:00

30 lines
689 B
Nix

{
pkgs,
lib,
config,
...
}: {
options = {
userServices.easyeffects.enable =
lib.mkEnableOption "EasyEffects user service.";
userServices.easyeffects.preset = lib.mkOption {
description = "Name of preset to start with.";
default = "";
type = lib.types.str;
};
};
config = lib.mkIf config.userServices.easyeffects.enable {
xdg.configFile."easyeffects/output/framework13.json".source =
./framework13.json;
xdg.configFile."easyeffects/output/LoudnessEqualizer.json".source =
./LoudnessEqualizer.json;
services.easyeffects = {
enable = true;
preset = config.userServices.easyeffects.preset;
};
};
}