feat: switch to pipewire
This commit is contained in:
parent
b414ba1d17
commit
9791074aec
8 changed files with 101 additions and 11 deletions
|
@ -1,7 +1,14 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./hardened.nix ./i18n.nix ./nix.nix ./networking.nix ./vpn.nix ];
|
||||
imports = [
|
||||
./hardened.nix
|
||||
./sound.nix
|
||||
./i18n.nix
|
||||
./nix.nix
|
||||
./networking.nix
|
||||
./vpn.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [ wget curl openssl neovim ];
|
||||
|
||||
|
|
5
system/gaming.nix
Normal file
5
system/gaming.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.gamemode.enable = true;
|
||||
}
|
32
system/sound.nix
Normal file
32
system/sound.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
media-session.config.bluez-monitor.rules = [
|
||||
{
|
||||
matches = [{ "device.name" = "~bluez_card.*"; }];
|
||||
actions = {
|
||||
"update-props" = {
|
||||
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
|
||||
"bluez5.msbc-support" = true;
|
||||
"bluez5.sbc-xq-support" = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{ "node.name" = "~bluez_input.*"; }
|
||||
{ "node.name" = "~bluez_output.*"; }
|
||||
];
|
||||
actions = { "node.pause-on-idle" = false; };
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue