diff --git a/modules/home/default.nix b/modules/home/default.nix index 6f8deaf..e15446e 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -7,5 +7,6 @@ ./git.nix ./neovim.nix ./kitty.nix + ./equalizer ]; } diff --git a/modules/home/equalizer/default.nix b/modules/home/equalizer/default.nix new file mode 100644 index 0000000..b1d0bde --- /dev/null +++ b/modules/home/equalizer/default.nix @@ -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; + }; + }; +} diff --git a/modules/home/equalizer/output/95X.json b/modules/home/equalizer/output/95X.json new file mode 100644 index 0000000..a059e5b --- /dev/null +++ b/modules/home/equalizer/output/95X.json @@ -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" + ] + } +} diff --git a/users/seb/@inspiron.nix b/users/seb/@inspiron.nix index 74b7891..367885c 100644 --- a/users/seb/@inspiron.nix +++ b/users/seb/@inspiron.nix @@ -1,4 +1,8 @@ -{pkgs, lib, ...}: { +{ + pkgs, + lib, + ... +}: { imports = [./default.nix]; home-manager.users.seb = { diff --git a/users/seb/@north.nix b/users/seb/@north.nix index 046271a..6f74240 100644 --- a/users/seb/@north.nix +++ b/users/seb/@north.nix @@ -23,5 +23,7 @@ }; services.hypridle.beforeSleepCmd = lib.mkForce ""; + + services.easyeffects.preset = "95X"; }; } diff --git a/users/seb/home.nix b/users/seb/home.nix index 86c864b..5e38696 100644 --- a/users/seb/home.nix +++ b/users/seb/home.nix @@ -4,6 +4,8 @@ osConfig, ... }: { + xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; + myConfig = { de = { hyprland.enable = osConfig.myConfig.de.hyprland.enable; @@ -27,17 +29,14 @@ ssh-client.enable = true; git.enable = true; - neovim.enable = true; vscode.enable = true; - kitty.enable = true; + equalizer.enable = true; }; programs.btop.enable = true; - xdg.userDirs.extraConfig.XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; - home.packages = [ pkgs.notepadqq pkgs.brave