From 08927eab65b37707c6e19f47d365e8b239ad6fa7 Mon Sep 17 00:00:00 2001 From: Jez Cope Date: Mon, 1 Feb 2021 20:57:48 +0000 Subject: [PATCH] gwydion: tweak PulseAudio sample rate and format --- home/jez/machines/gwydion.nix | 1 + machines/gwydion.nix | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/home/jez/machines/gwydion.nix b/home/jez/machines/gwydion.nix index 89b5f22..37df67a 100644 --- a/home/jez/machines/gwydion.nix +++ b/home/jez/machines/gwydion.nix @@ -12,6 +12,7 @@ in { audio_output { type "pulse" name "Shared output (pulseaudio)" + format "96000:32:*" } audio_output { diff --git a/machines/gwydion.nix b/machines/gwydion.nix index 30308c3..e5024f9 100644 --- a/machines/gwydion.nix +++ b/machines/gwydion.nix @@ -37,6 +37,12 @@ 21 # ftp ]; + hardware.pulseaudio.daemon.config = { + default-sample-rate = "192000"; + alternate-sample-rate = "96000"; + avoid-resampling = "yes"; + }; + services.vsftpd = { enable = true; localUsers = true;