From f6e32de84c73b04333ade392905c56ed2a6c97dc Mon Sep 17 00:00:00 2001 From: KeksNino Date: Tue, 1 Sep 2026 20:50:48 +0200 Subject: [PATCH] fix pipewire crackling and install yabridge + add playlist to ignore in playlist script --- hosts/desktop/configuration.nix | 12 +++++++----- hosts/desktop/packages.nix | 6 +++++- modules/scripts.nix | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 71a8fcd..cecb0f4 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -170,11 +170,13 @@ alsa.support32Bit = true; pulse.enable = true; jack.enable = true; - extraConfig.pipewire."92-no-crackling" = { - "context.properties" = { - "default.clock.quantum" = 2048; - "default.clock.min-quantum" = 256; - "default.clock.max-quantum" = 4096; + extraConfig.pipewire = { + "98-crackling-fix" = { + "context.properties" = { + "default.clock.quantum" = 1024; + "default.clock.min-quantum" = 1024; + "default.clock.max-quantum" = 8192; + }; }; }; }; diff --git a/hosts/desktop/packages.nix b/hosts/desktop/packages.nix index ca28605..acb3ce7 100644 --- a/hosts/desktop/packages.nix +++ b/hosts/desktop/packages.nix @@ -29,7 +29,7 @@ trash-cli spek ffmpeg - # wine + wine nemo-with-extensions papirus-icon-theme rust-analyzer @@ -75,6 +75,10 @@ bs-manager nicotine-plus piper + yabridge + yabridgectl + wineWow64Packages.yabridge + vital ]; fonts.packages = with pkgs; [ diff --git a/modules/scripts.nix b/modules/scripts.nix index 87c1fa1..c851084 100644 --- a/modules/scripts.nix +++ b/modules/scripts.nix @@ -38,7 +38,7 @@ BASENAME="/home/user/Music/$SELECTED_SONGS" # echo $BASENAME | kitty +kitten clipboard shopt -s extglob - if grep -q "$BASENAME" "$PLAYLIST_DIR"/!(new|lostfrog).m3u + if grep -q "$BASENAME" "$PLAYLIST_DIR"/!(active\ -\ new|other\ -\ lostfrog).m3u then notify-send "Song is in a playlist"; else