feat: add pipewire wine audio fix and add dropdown terminal to i3
This commit is contained in:
parent
8e8fdb8fa2
commit
e6a98be608
7 changed files with 60 additions and 9 deletions
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, config, lib, ... }: lib.mkIf config.bchmnn.audio.enable {
|
||||
# Enable pipewire - audio
|
||||
services.pipewire = lib.mkIf (!builtins.elem "gnome" config.bchmnn.gui.flavour) {
|
||||
enable = true;
|
||||
audio.enable = true;
|
||||
|
|
@ -8,11 +7,29 @@
|
|||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
extraConfig.pipewire = lib.mkIf config.bchmnn.audio.pipewire-wine-fix.enable {
|
||||
"90-wine-config" = {
|
||||
"context.properties" = {
|
||||
# "default.clock.rate" = 48000;
|
||||
# "default.clock.allowed-rates" = [ 48000 ];
|
||||
# "default.clock.quantum" = 2048;
|
||||
"default.clock.min-quantum" = 1024;
|
||||
};
|
||||
};
|
||||
};
|
||||
extraConfig.pipewire-pulse = lib.mkIf config.bchmnn.audio.pipewire-wine-fix.enable {
|
||||
"90-wine-config" = {
|
||||
"pulse.properties" = {
|
||||
"pulse.min.req" = "1024/48000";
|
||||
"pulse.min.frag" = "1024/48000";
|
||||
"pulse.min.quantum" = "1024/48000";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
alsa-utils
|
||||
pulseaudio
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue