Revert to pulseaudio until pipewire works systemwide

This commit is contained in:
Sandro - 2021-09-22 22:24:05 +02:00
parent 2e1383af03
commit bd6aaa4901
1 changed files with 27 additions and 9 deletions

View File

@ -6,8 +6,10 @@
let
octoprintPort = 8080;
in {
imports = [ # Include the results of the hardware scan.
in
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
@ -41,9 +43,9 @@ in {
networking = {
hostName = "pulsebert"; # Define your hostname.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
useDHCP = false;
interfaces.eth0.useDHCP = true;
interfaces.wlan0.useDHCP = true;
@ -101,12 +103,28 @@ in {
};
};
services.pipewire = {
hardware.pulseaudio = {
enable = true;
alsa.enable = true;
config.pipewire-pulse = lib.importJSON ./pipewire-pulse.conf.json;
pulse.enable = true;
systemWide = true;
tcp.enable = true;
tcp.anonymousClients.allowedIpRanges = [
"127.0.0.0/8"
"::1/128"
"fd23:42:c3d2:500::/56"
"172.22.99.0/24"
"172.20.72.0/21"
"2a00:8180:2c00:200::/56"
];
zeroconf.publish.enable = true;
package = pkgs.pulseaudioFull;
extraModules = [ pkgs.pulseaudio-modules-bt ];
};
#services.pipewire = {
# enable = true;
# alsa.enable = true;
# config.pipewire-pulse = lib.importJSON ./pipewire-pulse.conf.json;
# pulse.enable = true;
#};
security.rtkit.enable = true;
# tell Avahi to publish CUPS and PulseAudio