summary refs log tree commit diff
path: root/nixos/modules/services/audio
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2017-07-17 08:20:38 +0200
committerGitHub <noreply@github.com>2017-07-17 08:20:38 +0200
commit1d78df27294017d464e60bf9b0595e7e42cfca55 (patch)
tree49ae667c9d7dfecfd4ecab62a7bd00b3baf5b369 /nixos/modules/services/audio
parent3d505a1acd66f22d644919b87e95b91752aef41b (diff)
parent44fadbb9bd3e8e49f7d966a8519f5e049aa71fb5 (diff)
downloadnixlib-1d78df27294017d464e60bf9b0595e7e42cfca55.tar
nixlib-1d78df27294017d464e60bf9b0595e7e42cfca55.tar.gz
nixlib-1d78df27294017d464e60bf9b0595e7e42cfca55.tar.bz2
nixlib-1d78df27294017d464e60bf9b0595e7e42cfca55.tar.lz
nixlib-1d78df27294017d464e60bf9b0595e7e42cfca55.tar.xz
nixlib-1d78df27294017d464e60bf9b0595e7e42cfca55.tar.zst
nixlib-1d78df27294017d464e60bf9b0595e7e42cfca55.zip
Merge pull request #27000 from Balletie/fix/pulseaudio-alsa-conf
pulseaudio: Resolve conflicting asound.conf of pulseaudio and alsa
Diffstat (limited to 'nixos/modules/services/audio')
-rw-r--r--nixos/modules/services/audio/alsa.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/audio/alsa.nix b/nixos/modules/services/audio/alsa.nix
index 53786dbc6270..acf48d3c3d03 100644
--- a/nixos/modules/services/audio/alsa.nix
+++ b/nixos/modules/services/audio/alsa.nix
@@ -7,6 +7,8 @@ let
 
   inherit (pkgs) alsaUtils;
 
+  pulseaudioEnabled = config.hardware.pulseaudio.enable;
+
 in
 
 {
@@ -80,7 +82,7 @@ in
 
     environment.systemPackages = [ alsaUtils ];
 
-    environment.etc = mkIf (config.sound.extraConfig != "")
+    environment.etc = mkIf (!pulseaudioEnabled && config.sound.extraConfig != "")
       [
         { source = pkgs.writeText "asound.conf" config.sound.extraConfig;
           target = "asound.conf";