summary refs log tree commit diff
path: root/nixos/modules/config/pulseaudio.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-07-21 01:18:06 +0200
committerProfpatsch <mail@profpatsch.de>2016-07-30 23:42:54 +0200
commit8a6047a525e206f07859666c21d4cc6a168c1481 (patch)
treec9fc7ffc23411e2e42375d6f258b5a6556874854 /nixos/modules/config/pulseaudio.nix
parent5074a79937aba5e13e7c7d722f09a8e8de65b3d7 (diff)
downloadnixpkgs-8a6047a525e206f07859666c21d4cc6a168c1481.tar
nixpkgs-8a6047a525e206f07859666c21d4cc6a168c1481.tar.gz
nixpkgs-8a6047a525e206f07859666c21d4cc6a168c1481.tar.bz2
nixpkgs-8a6047a525e206f07859666c21d4cc6a168c1481.tar.lz
nixpkgs-8a6047a525e206f07859666c21d4cc6a168c1481.tar.xz
nixpkgs-8a6047a525e206f07859666c21d4cc6a168c1481.tar.zst
nixpkgs-8a6047a525e206f07859666c21d4cc6a168c1481.zip
nixos/pulseaudio: increase service restart time
Pulseaudio doesn’t like being restarted too quickly.
Diffstat (limited to 'nixos/modules/config/pulseaudio.nix')
-rw-r--r--nixos/modules/config/pulseaudio.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/config/pulseaudio.nix b/nixos/modules/config/pulseaudio.nix
index 2939e67566c..71ac3f9a72c 100644
--- a/nixos/modules/config/pulseaudio.nix
+++ b/nixos/modules/config/pulseaudio.nix
@@ -237,6 +237,7 @@ in {
             Type = "notify";
             ExecStart = binaryNoDaemon;
             Restart = "on-failure";
+            RestartSec = "500ms";
           };
           environment = { DISPLAY = ":${toString config.services.xserver.display}"; };
           restartIfChanged = true;
@@ -276,6 +277,7 @@ in {
           Type = "notify";
           ExecStart = "${binaryNoDaemon} --log-level=${cfg.daemon.logLevel} --system -n --file=${myConfigFile}";
           Restart = "on-failure";
+          RestartSec = "500ms";
         };
       };
     })