From acc8ea705c73fa744b40bf5d46349348159cd5a8 Mon Sep 17 00:00:00 2001 From: Mora Unie Youer Date: Sun, 30 Mar 2025 14:17:22 +0300 Subject: fix(sapphire): try to improve crackling issue in Pipewire --- system-sapphire.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system-sapphire.nix b/system-sapphire.nix index 897129c..47c022c 100644 --- a/system-sapphire.nix +++ b/system-sapphire.nix @@ -63,7 +63,12 @@ # NOTE: We need to load `i915` before `amdgpu` due to Chromium bugs # Will be removed when Chromium 131 will be released and Electron will upgrade to it boot.initrd.kernelModules = [ "i915" "amdgpu" "dm-snapshot" ]; + # boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.postBootCommands = '' + echo 2048 > /sys/class/rtc/rtc0/max_user_freq + echo 2048 > /proc/sys/dev/hpet/max-user-freq + ''; ### ### Hardware configuration @@ -103,6 +108,7 @@ musnix.enable = true; musnix.rtcqs.enable = true; + services.pipewire = { enable = true; alsa.enable = true; -- cgit v1.2.3-70-g09d2