Sound module

This commit is contained in:
kat witch 2021-03-02 15:14:18 +00:00
parent b0e4c31d6e
commit d1566022f4
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 15 additions and 0 deletions

View file

@ -4,6 +4,7 @@
imports = [
./ssh.nix
./desktop.nix
./sound.nix
./gaming.nix
./network.nix
./sway.nix

View file

@ -0,0 +1,14 @@
{ config, lib, pkgs, ... }:
{
config = lib.mkIf (lib.elem "desktop" config.meta.deploy.profiles) {
sound.extraConfig = ''
defaults.pcm.rate_converter "speexrate_best"
'';
hardware.pulseaudio.daemon.config = {
default-sample-format = "s24le";
default-sample-rate = 192000;
resample-method = "soxr-vhq";
};
};
}