From fa139f638e07be78393637b049a195b9abf01c30 Mon Sep 17 00:00:00 2001
From: lassulus <lass@aidsballs.de>
Date: Sun, 19 Jun 2016 00:26:00 +0200
Subject: [PATCH] l 2 pulse: add /etc/pulse/daemon.conf

---
 lass/2configs/pulse.nix | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lass/2configs/pulse.nix b/lass/2configs/pulse.nix
index e86ea3b94..3be482191 100644
--- a/lass/2configs/pulse.nix
+++ b/lass/2configs/pulse.nix
@@ -25,6 +25,13 @@ let
     default-server = unix:${runDir}/socket
   '';
 
+  daemonConf = pkgs.writeText "daemon.conf" ''
+    exit-idle-time=0
+    flat-volumes = no
+    default-fragments = 4
+    default-fragment-size-msec = 25
+  '';
+
   configFile = pkgs.writeText "default.pa" ''
     .include ${pkg}/etc/pulse/default.pa
     load-module ${toString [
@@ -44,6 +51,7 @@ in
       #"pulse/client.conf" = mkForce { source = clientConf; };
       #"pulse/client.conf".source = mkForce clientConf;
       "pulse/default.pa".source = configFile;
+      "pulse/daemon.pa".source = daemonConf;
     };
     systemPackages = [
       pkg