mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 01:33:55 -05:00
hwModules/legion/go: add convolver from legion-go-tricks (#127)
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / pacifidlog-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / pacifidlog-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* hwModules/legion/go: add convolver from legion-go-tricks * legion go: update sink names
This commit is contained in:
parent
b9d53cd8dc
commit
b1accb48a1
|
@ -4,7 +4,16 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
self,
|
self,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
legion-go-tricks = pkgs.fetchFromGitHub {
|
||||||
|
owner = "aarron-lee";
|
||||||
|
repo = "legion-go-tricks";
|
||||||
|
rev = "773f4dfa217989213ab2678d63a84dc306e8f8d4";
|
||||||
|
sha256 = "sha256-d5TB4kvNR7bwF5VyO1hxe8n9/PubtzWlBgvSmpUgDQc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
convolverPath = "${legion-go-tricks}/experimental_sound_fix/multiwayCor48.wav";
|
||||||
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
self.nixosModules.hw-common-amd-cpu
|
self.nixosModules.hw-common-amd-cpu
|
||||||
self.nixosModules.hw-common-amd-gpu
|
self.nixosModules.hw-common-amd-gpu
|
||||||
|
@ -40,5 +49,64 @@
|
||||||
sensor.iio.enable = true;
|
sensor.iio.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.upower.enable = true;
|
services = {
|
||||||
|
pipewire.wireplumber.configPackages = [
|
||||||
|
(pkgs.writeTextDir "share/pipewire/pipewire.conf.d/10-legion-go-convolver.conf" ''
|
||||||
|
# Convolver Configuration for Pipewire
|
||||||
|
#
|
||||||
|
# This configuration applies separate left and right convolver effects using the corresponding impulse response files
|
||||||
|
# to the entire system audio output.
|
||||||
|
|
||||||
|
context.modules = [
|
||||||
|
{ name = libpipewire-module-filter-chain
|
||||||
|
args = {
|
||||||
|
node.description = "Legion Go"
|
||||||
|
media.name = "Legion Go"
|
||||||
|
filter.graph = {
|
||||||
|
nodes = [
|
||||||
|
{
|
||||||
|
type = builtin
|
||||||
|
label = convolver
|
||||||
|
name = convFL
|
||||||
|
config = {
|
||||||
|
filename = "${convolverPath}"
|
||||||
|
channel = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = builtin
|
||||||
|
label = convolver
|
||||||
|
name = convFR
|
||||||
|
config = {
|
||||||
|
filename = "${convolverPath}"
|
||||||
|
channel = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
inputs = [ "convFL:In" "convFR:In" ]
|
||||||
|
outputs = [ "convFL:Out" "convFR:Out" ]
|
||||||
|
}
|
||||||
|
capture.props = {
|
||||||
|
node.name = "Legion Go"
|
||||||
|
media.class = "Audio/Sink"
|
||||||
|
priority.driver = 1000
|
||||||
|
priority.session = 1000
|
||||||
|
audio.channels = 2
|
||||||
|
audio.position = [ FL FR ]
|
||||||
|
}
|
||||||
|
playback.props = {
|
||||||
|
node.name = "Legion Go corrected"
|
||||||
|
node.passive = true
|
||||||
|
audio.channels = 2
|
||||||
|
audio.position = [ FL FR ]
|
||||||
|
node.target = "alsa_output.pci-0000_c2_00.6.analog-stereo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
|
||||||
|
upower.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue