From b8ac83f1a127836d662d7facb73086a0c0973a17 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 17 Sep 2024 12:12:40 -0500 Subject: [PATCH] Add comment with pipewire profile for fw13 speakers --- nixos/foxtrot.nix | 242 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 241 insertions(+), 1 deletion(-) diff --git a/nixos/foxtrot.nix b/nixos/foxtrot.nix index 579d661..07d67e5 100644 --- a/nixos/foxtrot.nix +++ b/nixos/foxtrot.nix @@ -1,4 +1,244 @@ -{pkgs, ...}: { +{pkgs, ...}: +/* +## source: https://community.frame.work/t/speakers-sound-quality/1078/82 +let + pipewire-speakers-profile-json = ''{ + "output": { + "blocklist": [], + "equalizer": { + "balance": 0.0, + "bypass": false, + "input-gain": 0.0, + "left": { + "band0": { + "frequency": 100.0, + "gain": 0.0, + "mode": "RLC (BT)", + "mute": false, + "q": 1.0, + "slope": "x4", + "solo": false, + "type": "Hi-pass" + }, + "band1": { + "frequency": 150.0, + "gain": 4.02, + "mode": "RLC (BT)", + "mute": false, + "q": 3.0, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band2": { + "frequency": 600.0, + "gain": -5.07, + "mode": "RLC (BT)", + "mute": false, + "q": 4.000000000000008, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band3": { + "frequency": 1200.0, + "gain": -3.49, + "mode": "RLC (BT)", + "mute": false, + "q": 4.17, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band4": { + "frequency": 2000.0, + "gain": 1.43, + "mode": "RLC (BT)", + "mute": false, + "q": 4.0, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band5": { + "frequency": 5300.0, + "gain": 3.84, + "mode": "RLC (BT)", + "mute": false, + "q": 2.64, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band6": { + "frequency": 6000.0, + "gain": 4.02, + "mode": "RLC (BT)", + "mute": false, + "q": 4.36, + "slope": "x1", + "solo": false, + "type": "Hi-shelf" + }, + "band7": { + "frequency": 7500.0, + "gain": -2.09, + "mode": "RLC (BT)", + "mute": false, + "q": 3.0, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band8": { + "frequency": 8000.0, + "gain": 2.01, + "mode": "RLC (BT)", + "mute": false, + "q": 4.36, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band9": { + "frequency": 900.0, + "gain": -4.12, + "mode": "RLC (BT)", + "mute": false, + "q": 5.909999999999967, + "slope": "x1", + "solo": false, + "type": "Bell" + } + }, + "mode": "IIR", + "num-bands": 10, + "output-gain": -1.5, + "pitch-left": 0.0, + "pitch-right": 0.0, + "right": { + "band0": { + "frequency": 100.0, + "gain": 0.0, + "mode": "RLC (BT)", + "mute": false, + "q": 1.0, + "slope": "x4", + "solo": false, + "type": "Hi-pass" + }, + "band1": { + "frequency": 150.0, + "gain": 4.02, + "mode": "RLC (BT)", + "mute": false, + "q": 3.0, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band2": { + "frequency": 600.0, + "gain": -5.07, + "mode": "RLC (BT)", + "mute": false, + "q": 4.000000000000008, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band3": { + "frequency": 1200.0, + "gain": -3.49, + "mode": "RLC (BT)", + "mute": false, + "q": 4.17, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band4": { + "frequency": 2000.0, + "gain": 1.43, + "mode": "RLC (BT)", + "mute": false, + "q": 4.0, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band5": { + "frequency": 5300.0, + "gain": 3.84, + "mode": "RLC (BT)", + "mute": false, + "q": 2.64, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band6": { + "frequency": 6000.0, + "gain": 4.02, + "mode": "RLC (BT)", + "mute": false, + "q": 4.36, + "slope": "x1", + "solo": false, + "type": "Hi-shelf" + }, + "band7": { + "frequency": 7500.0, + "gain": -2.09, + "mode": "RLC (BT)", + "mute": false, + "q": 3.0, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band8": { + "frequency": 8000.0, + "gain": 2.01, + "mode": "RLC (BT)", + "mute": false, + "q": 4.36, + "slope": "x1", + "solo": false, + "type": "Bell" + }, + "band9": { + "frequency": 900.0, + "gain": -4.12, + "mode": "RLC (BT)", + "mute": false, + "q": 5.909999999999967, + "slope": "x1", + "solo": false, + "type": "Bell" + } + }, + "split-channels": false + }, + "loudness": { + "bypass": false, + "clipping": false, + "clipping-range": 6.0, + "fft": "4096", + "input-gain": 0.0, + "output-gain": 0.0, + "std": "ISO226-2003", + "volume": 6.999999999999991 + }, + "plugins_order": [ + "loudness", + "equalizer" + ] + } +}''; +in +*/ +{ imports = [ { system.stateVersion = "24.05";