From f56177f3eb1fc266060e2faab36ace603d5ad101 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 27 May 2023 11:10:06 -0700 Subject: [PATCH] desktop: switch to pipewire to fix audio delay --- hosts/desktop.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/hosts/desktop.nix b/hosts/desktop.nix index a60f013..1153ce0 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -50,9 +50,20 @@ in # To prevent `Unit dconf.service not found.` after theming GTK in HM programs.dconf.enable = true; - sound.enable = true; - hardware.pulseaudio.enable = true; - nixpkgs.config.pulseaudio = true; + #sound.enable = true; + #hardware.pulseaudio.enable = true; + #nixpkgs.config.pulseaudio = true; + + # rtkit is optional but recommended + security.rtkit.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + # If you want to use JACK applications, uncomment this + #jack.enable = true; + }; fonts = { enableDefaultFonts = false;