Add eq config

This commit is contained in:
SebastianStork 2024-04-22 23:22:26 +02:00
parent b915c75c2e
commit 60f587bfd6
6 changed files with 270 additions and 5 deletions

View file

@ -7,5 +7,6 @@
./git.nix ./git.nix
./neovim.nix ./neovim.nix
./kitty.nix ./kitty.nix
./equalizer
]; ];
} }

View file

@ -0,0 +1,16 @@
{
config,
lib,
...
}: {
options.myConfig.equalizer.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.equalizer.enable {
services.easyeffects.enable = true;
xdg.configFile."easyeffects/output" = {
source = ./output;
recursive = true;
};
};
}

View file

@ -0,0 +1,243 @@
{
"output": {
"blocklist": [],
"equalizer#0": {
"balance": 0.0,
"bypass": false,
"input-gain": -5.89,
"left": {
"band0": {
"frequency": 105.0,
"gain": 6.0,
"mode": "APO (DR)",
"mute": false,
"q": 0.699999988079071,
"slope": "x1",
"solo": false,
"type": "Lo-shelf",
"width": 4.0
},
"band1": {
"frequency": 59.5,
"gain": 1.5,
"mode": "APO (DR)",
"mute": false,
"q": 5.940000057220459,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band2": {
"frequency": 103.9000015258789,
"gain": -1.7999999523162842,
"mode": "APO (DR)",
"mute": false,
"q": 0.5,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band3": {
"frequency": 470.5,
"gain": -0.699999988079071,
"mode": "APO (DR)",
"mute": false,
"q": 2.3399999141693115,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band4": {
"frequency": 1133.0999755859375,
"gain": -5.199999809265137,
"mode": "APO (DR)",
"mute": false,
"q": 1.2699999809265137,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band5": {
"frequency": 2174.60009765625,
"gain": 2.9000000953674316,
"mode": "APO (DR)",
"mute": false,
"q": 2.1700000762939453,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band6": {
"frequency": 4271.2001953125,
"gain": 4.199999809265137,
"mode": "APO (DR)",
"mute": false,
"q": 2.859999895095825,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band7": {
"frequency": 5664.7001953125,
"gain": -4.300000190734863,
"mode": "APO (DR)",
"mute": false,
"q": 4.21999979019165,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band8": {
"frequency": 7658.10009765625,
"gain": 4.199999809265137,
"mode": "APO (DR)",
"mute": false,
"q": 1.25,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band9": {
"frequency": 10000.0,
"gain": -0.8999999761581421,
"mode": "APO (DR)",
"mute": false,
"q": 0.699999988079071,
"slope": "x1",
"solo": false,
"type": "Hi-shelf",
"width": 4.0
}
},
"mode": "IIR",
"num-bands": 10,
"output-gain": 0.0,
"pitch-left": 0.0,
"pitch-right": 0.0,
"right": {
"band0": {
"frequency": 105.0,
"gain": 6.0,
"mode": "APO (DR)",
"mute": false,
"q": 0.699999988079071,
"slope": "x1",
"solo": false,
"type": "Lo-shelf",
"width": 4.0
},
"band1": {
"frequency": 59.5,
"gain": 1.5,
"mode": "APO (DR)",
"mute": false,
"q": 5.940000057220459,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band2": {
"frequency": 103.9000015258789,
"gain": -1.7999999523162842,
"mode": "APO (DR)",
"mute": false,
"q": 0.5,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band3": {
"frequency": 470.5,
"gain": -0.699999988079071,
"mode": "APO (DR)",
"mute": false,
"q": 2.3399999141693115,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band4": {
"frequency": 1133.0999755859375,
"gain": -5.199999809265137,
"mode": "APO (DR)",
"mute": false,
"q": 1.2699999809265137,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band5": {
"frequency": 2174.60009765625,
"gain": 2.9000000953674316,
"mode": "APO (DR)",
"mute": false,
"q": 2.1700000762939453,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band6": {
"frequency": 4271.2001953125,
"gain": 4.199999809265137,
"mode": "APO (DR)",
"mute": false,
"q": 2.859999895095825,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band7": {
"frequency": 5664.7001953125,
"gain": -4.300000190734863,
"mode": "APO (DR)",
"mute": false,
"q": 4.21999979019165,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band8": {
"frequency": 7658.10009765625,
"gain": 4.199999809265137,
"mode": "APO (DR)",
"mute": false,
"q": 1.25,
"slope": "x1",
"solo": false,
"type": "Bell",
"width": 4.0
},
"band9": {
"frequency": 10000.0,
"gain": -0.8999999761581421,
"mode": "APO (DR)",
"mute": false,
"q": 0.699999988079071,
"slope": "x1",
"solo": false,
"type": "Hi-shelf",
"width": 4.0
}
},
"split-channels": false
},
"plugins_order": [
"equalizer#0"
]
}
}

View file

@ -1,4 +1,8 @@
{pkgs, lib, ...}: { {
pkgs,
lib,
...
}: {
imports = [./default.nix]; imports = [./default.nix];
home-manager.users.seb = { home-manager.users.seb = {

View file

@ -23,5 +23,7 @@
}; };
services.hypridle.beforeSleepCmd = lib.mkForce ""; services.hypridle.beforeSleepCmd = lib.mkForce "";
services.easyeffects.preset = "95X";
}; };
} }

View file

@ -4,6 +4,8 @@
osConfig, osConfig,
... ...
}: { }: {
xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
myConfig = { myConfig = {
de = { de = {
hyprland.enable = osConfig.myConfig.de.hyprland.enable; hyprland.enable = osConfig.myConfig.de.hyprland.enable;
@ -27,17 +29,14 @@
ssh-client.enable = true; ssh-client.enable = true;
git.enable = true; git.enable = true;
neovim.enable = true; neovim.enable = true;
vscode.enable = true; vscode.enable = true;
kitty.enable = true; kitty.enable = true;
equalizer.enable = true;
}; };
programs.btop.enable = true; programs.btop.enable = true;
xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots";
home.packages = [ home.packages = [
pkgs.notepadqq pkgs.notepadqq
pkgs.brave pkgs.brave