home-manager: added easyeffects module with presets

This commit is contained in:
Aly Raffauf 2024-03-31 13:21:27 -04:00
parent 8b84024206
commit 6c54370a7f
3 changed files with 127 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ ./syncthing ]; imports = [ ./syncthing ./easyeffects ];
userServices.syncthing.enable = lib.mkDefault true; userServices.syncthing.enable = lib.mkDefault true;
} }

View file

@ -0,0 +1,23 @@
{ 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;
};
};
}

View file

@ -0,0 +1,103 @@
{
"output": {
"blocklist": [],
"equalizer": {
"balance": 0.0,
"bypass": false,
"input-gain": 0.0,
"left": {
"band0": {
"frequency": 101.0,
"gain": -18.1,
"mode": "RLC (BT)",
"mute": false,
"q": 4.36,
"slope": "x1",
"solo": false,
"type": "Lo-shelf"
},
"band1": {
"frequency": 451.0,
"gain": -5.48,
"mode": "RLC (BT)",
"mute": false,
"q": 2.46,
"slope": "x1",
"solo": false,
"type": "Bell"
},
"band2": {
"frequency": 918.0,
"gain": -4.76,
"mode": "RLC (BT)",
"mute": false,
"q": 2.44,
"slope": "x1",
"solo": false,
"type": "Bell"
},
"band3": {
"frequency": 9700.0,
"gain": 8.1,
"mode": "RLC (BT)",
"mute": false,
"q": 2.0,
"slope": "x1",
"solo": false,
"type": "Bell"
}
},
"mode": "IIR",
"num-bands": 4,
"output-gain": 0.0,
"pitch-left": 0.0,
"pitch-right": 0.0,
"right": {
"band0": {
"frequency": 101.0,
"gain": -18.1,
"mode": "RLC (BT)",
"mute": false,
"q": 4.36,
"slope": "x1",
"solo": false,
"type": "Lo-shelf"
},
"band1": {
"frequency": 451.0,
"gain": -5.48,
"mode": "RLC (BT)",
"mute": false,
"q": 2.46,
"slope": "x1",
"solo": false,
"type": "Bell"
},
"band2": {
"frequency": 918.0,
"gain": -4.76,
"mode": "RLC (BT)",
"mute": false,
"q": 2.44,
"slope": "x1",
"solo": false,
"type": "Bell"
},
"band3": {
"frequency": 9700.0,
"gain": 8.1,
"mode": "RLC (BT)",
"mute": false,
"q": 2.0,
"slope": "x1",
"solo": false,
"type": "Bell"
}
},
"split-channels": false
},
"plugins_order": [
"equalizer"
]
}
}