Skip to content

Commit

Permalink
WIP: Do something about audio crackling?
Browse files Browse the repository at this point in the history
  • Loading branch information
TLATER committed Mar 3, 2024
1 parent a585607 commit 55bb647
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 3 deletions.
21 changes: 21 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
};
};

musnix = {
url = "github:musnix/musnix";
inputs.nixpkgs.follows = "nixpkgs";
};

# home-manager related inputs
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
Expand Down
2 changes: 1 addition & 1 deletion nixos-config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
boot = {
tmp.cleanOnBoot = true;
plymouth.enable = true;
kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
kernelPackages = pkgs.linuxKernel.packages.linux_xanmod;

loader = {
timeout = 0;
Expand Down
8 changes: 7 additions & 1 deletion nixos-config/hosts/yui/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ in {
flake-inputs.nixos-hardware.nixosModules.common-pc-ssd
flake-inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
flake-inputs.nixos-hardware.nixosModules.common-gpu-nvidia-nonprime
flake-inputs.musnix.nixosModules.musnix

./games.nix
./hardware-configuration.nix
Expand Down Expand Up @@ -68,6 +69,11 @@ in {

fileSystems."/nix".options = ["defaults" "noatime"];

musnix = {
enable = true;
soundcardPciId = "09:00.4";
};

# Fix broken suspend on b550i motherboard
#
# The rule is a bit overzealous, as it disables wake from *either*
Expand All @@ -86,5 +92,5 @@ in {

# For random android-related things
programs.adb.enable = true;
users.users.tlater.extraGroups = ["adbusers"];
users.users.tlater.extraGroups = ["adbusers" "audio"];
}
5 changes: 4 additions & 1 deletion nixos-config/hosts/yui/games.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
environment.systemPackages = [pkgs.mangohud];

# Appears to resolve issues with crackling audio under high load
services.pipewire.lowLatency.enable = true;
services.pipewire.lowLatency = {
enable = true;
quantum = 128;
};

# Make steam controller work
hardware.steam-hardware.enable = true;
Expand Down

0 comments on commit 55bb647

Please sign in to comment.