pipewire
parent
0b5c00e685
commit
cf34ead8ce
|
@ -11,11 +11,6 @@ in { config, lib, pkgs, ... }: {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport32Bit = config.yorick.support32bit;
|
driSupport32Bit = config.yorick.support32bit;
|
||||||
};
|
};
|
||||||
sound.enable = true;
|
|
||||||
hardware.pulseaudio = {
|
|
||||||
enable = true;
|
|
||||||
support32Bit = config.yorick.support32bit;
|
|
||||||
};
|
|
||||||
users.users.yorick.extraGroups = [ "video" ];
|
users.users.yorick.extraGroups = [ "video" ];
|
||||||
# fix backlight permissions
|
# fix backlight permissions
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
|
|
|
@ -36,8 +36,6 @@ in {
|
||||||
services.pcscd.enable = true;
|
services.pcscd.enable = true;
|
||||||
#environment.systemPackages = [pkgs.yubikey-manager];
|
#environment.systemPackages = [pkgs.yubikey-manager];
|
||||||
fonts.fonts = [ pkgs.emojione ];
|
fonts.fonts = [ pkgs.emojione ];
|
||||||
# bluetooth headphones
|
|
||||||
hardware.pulseaudio.package = pkgs.pulseaudioFull;
|
|
||||||
programs.wireshark.enable = true;
|
programs.wireshark.enable = true;
|
||||||
nix = {
|
nix = {
|
||||||
gc.automatic = pkgs.lib.mkOverride 30 false;
|
gc.automatic = pkgs.lib.mkOverride 30 false;
|
||||||
|
@ -75,9 +73,6 @@ in {
|
||||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="5bf0", MODE="0664", GROUP="dialout"
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="5bf0", MODE="0664", GROUP="dialout"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# LDAC:
|
|
||||||
hardware.pulseaudio.extraModules = [ pkgs.pulseaudio-modules-bt ];
|
|
||||||
|
|
||||||
# picoscope
|
# picoscope
|
||||||
#users.users.yorick.extraGroups = ["pico"];
|
#users.users.yorick.extraGroups = ["pico"];
|
||||||
services.udev.packages = [
|
services.udev.packages = [
|
||||||
|
@ -99,7 +94,39 @@ in {
|
||||||
|
|
||||||
yorick.lumi-vpn.enable = true;
|
yorick.lumi-vpn.enable = true;
|
||||||
|
|
||||||
services.pipewire.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true; # todo: support32bit?
|
||||||
|
pulse.enable = true;
|
||||||
|
media-session.config.bluez-monitor.rules = [
|
||||||
|
{
|
||||||
|
# Matches all cards
|
||||||
|
matches = [ { "device.name" = "~bluez_card.*"; } ];
|
||||||
|
actions = {
|
||||||
|
"update-props" = {
|
||||||
|
"bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
|
||||||
|
# mSBC is not expected to work on all headset + adapter combinations.
|
||||||
|
"bluez5.msbc-support" = true;
|
||||||
|
# SBC-XQ is not expected to work on all headset + adapter combinations.
|
||||||
|
"bluez5.sbc-xq-support" = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
matches = [
|
||||||
|
# Matches all sources
|
||||||
|
{ "node.name" = "~bluez_input.*"; }
|
||||||
|
# Matches all outputs
|
||||||
|
{ "node.name" = "~bluez_output.*"; }
|
||||||
|
];
|
||||||
|
actions = {
|
||||||
|
"node.pause-on-idle" = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPortals = with pkgs; [ xdg-desktop-portal-wlr xdg-desktop-portal-gtk ];
|
extraPortals = with pkgs; [ xdg-desktop-portal-wlr xdg-desktop-portal-gtk ];
|
||||||
|
|
Loading…
Reference in New Issue