{ 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; services.easyeffects = { enable = true; preset = config.userServices.easyeffects.preset; }; }; }