Skip to content

Commit

Permalink
WIP: pipewire: Do something about audio crackling?
Browse files Browse the repository at this point in the history
  • Loading branch information
TLATER committed Jan 28, 2024
1 parent 5a74cfd commit 0a7c199
Show file tree
Hide file tree
Showing 4 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
10 changes: 8 additions & 2 deletions nixos-config/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
imports = [
flake-inputs.home-manager.nixosModules.home-manager
flake-inputs.sops-nix.nixosModules.sops
flake-inputs.musnix.nixosModules.musnix

./greeter
./sway.nix
Expand All @@ -15,6 +16,11 @@
../modules
];

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

nix = {
package = pkgs.nixFlakes;

Expand Down Expand Up @@ -71,7 +77,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 Expand Up @@ -109,7 +115,7 @@
users = {
tlater = {
isNormalUser = true;
extraGroups = ["wheel" "video" "network"];
extraGroups = ["wheel" "video" "network" "audio"];
};
};
};
Expand Down
5 changes: 4 additions & 1 deletion nixos-config/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 0a7c199

Please sign in to comment.