diff --git a/modules/apps/media.nix b/modules/apps/media.nix index c523e67..babd768 100644 --- a/modules/apps/media.nix +++ b/modules/apps/media.nix @@ -19,9 +19,9 @@ with lib; "io.github.celluloid_player.Celluloid" "org.kde.krita" "org.kde.KStyle.Adwaita//5.15-23.08" # Retrieved from https://docs.flatpak.org/en/latest/desktop-integration.html - "org.kde.KStyle.Adwaita//6.5" + "org.kde.KStyle.Adwaita//6.6" "org.kde.WaylandDecoration.QAdwaitaDecorations//5.15-23.08" # Replaced deprecated QGnomePlatform https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications - "org.kde.WaylandDecoration.QAdwaitaDecorations//6.5" + "org.kde.WaylandDecoration.QAdwaitaDecorations//6.6" ]; }; }; diff --git a/modules/base/bluetooth.nix b/modules/base/bluetooth.nix index 70126d5..9682ef5 100644 --- a/modules/base/bluetooth.nix +++ b/modules/base/bluetooth.nix @@ -30,17 +30,5 @@ with lib; environment.systemPackages = with pkgs; [ liblc3 ]; - - # Reduce audio latency per https://nixos.wiki/wiki/PipeWire#Low-latency_setup - services.pipewire.extraConfig.pipewire = lib.mkIf config.sound.enable { - "92-low-latency.conf" = { - "context.properties" = { - "default.clock.rate" = 48000; - "default.clock.quantum" = 32; - "default.clock.min-quantum" = 32; - "default.clock.max-quantum" = 32; - }; - }; - }; }; } \ No newline at end of file diff --git a/modules/ui/audio.nix b/modules/ui/audio.nix index f84a9d8..cdc528b 100644 --- a/modules/ui/audio.nix +++ b/modules/ui/audio.nix @@ -6,7 +6,10 @@ in with lib; { options = { - host.ui.audio.enable = mkEnableOption (mdDoc "Enables audio"); + host.ui.audio = { + enable = mkEnableOption (mdDoc "Enables audio"); + enableLowLatency = mkEnableOption (mdDoc "Enables low-latency audio (may cause crackling) per https://nixos.wiki/wiki/PipeWire#Low-latency_setup "); + }; }; config = mkIf cfg.enable { @@ -25,5 +28,17 @@ with lib; pulse.enable = true; jack.enable = true; }; + + # Reduce audio latency per https://nixos.wiki/wiki/PipeWire#Low-latency_setup + services.pipewire.extraConfig.pipewire = mkIf cfg.enableLowLatency { + "92-low-latency.conf" = { + "context.properties" = { + "default.clock.rate" = 48000; + "default.clock.quantum" = 32; + "default.clock.min-quantum" = 32; + "default.clock.max-quantum" = 32; + }; + }; + }; }; } \ No newline at end of file