aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Mora Unie Youer <[email protected]>2025-03-30 14:17:22 +0300
committerLibravatar Mora Unie Youer <[email protected]>2025-03-30 14:17:22 +0300
commitacc8ea705c73fa744b40bf5d46349348159cd5a8 (patch)
tree5186b6c0c15132af117246cc95289d5afd50adf0
parentdeps: update neovim-configuration (diff)
downloadnixos-configuration-acc8ea705c73fa744b40bf5d46349348159cd5a8.tar.gz
nixos-configuration-acc8ea705c73fa744b40bf5d46349348159cd5a8.tar.bz2
nixos-configuration-acc8ea705c73fa744b40bf5d46349348159cd5a8.tar.lz
nixos-configuration-acc8ea705c73fa744b40bf5d46349348159cd5a8.tar.xz
nixos-configuration-acc8ea705c73fa744b40bf5d46349348159cd5a8.tar.zst
nixos-configuration-acc8ea705c73fa744b40bf5d46349348159cd5a8.zip
fix(sapphire): try to improve crackling issue in Pipewire
-rw-r--r--system-sapphire.nix6
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;