diff options
fix(sapphire): try to improve crackling issue in Pipewire
-rw-r--r-- | system-sapphire.nix | 6 |
1 files changed, 6 insertions, 0 deletions
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; |