From 0a50d682ec85bf023bebd68a3ca388001f0c0677 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 8 Oct 2019 21:44:57 +0200 Subject: mv modules settings --- system/settings/hardware/audio.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 system/settings/hardware/audio.nix (limited to 'system/settings/hardware/audio.nix') diff --git a/system/settings/hardware/audio.nix b/system/settings/hardware/audio.nix new file mode 100644 index 00000000..ed956919 --- /dev/null +++ b/system/settings/hardware/audio.nix @@ -0,0 +1,20 @@ +{ config, pkgs, ... }: + +{ hardware.pulseaudio = { + enable = true; + support32Bit = true; + daemon.config = { + flat-volumes = "no"; + }; + package = if config.hardware.bluetooth.enable + then pkgs.pulseaudioFull + else pkgs.pulseaudio; + }; + + sound.enable = true; + + environment.systemPackages = with pkgs; [ + pamixer + pavucontrol + ]; +} -- cgit 1.4.1