feat: switch to pipewire

This commit is contained in:
Felix Schröter 2021-08-01 14:44:23 +02:00
parent b414ba1d17
commit 9791074aec
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
8 changed files with 101 additions and 11 deletions

View file

@ -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
View file

@ -0,0 +1,5 @@
{ config, pkgs, ... }:
{
programs.gamemode.enable = true;
}

32
system/sound.nix Normal file
View 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; };
}
];
};
}