diff options
author | Profpatsch <mail@profpatsch.de> | 2016-07-21 01:18:06 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2016-07-30 23:42:54 +0200 |
commit | 8a6047a525e206f07859666c21d4cc6a168c1481 (patch) | |
tree | c9fc7ffc23411e2e42375d6f258b5a6556874854 /nixos | |
parent | 5074a79937aba5e13e7c7d722f09a8e8de65b3d7 (diff) | |
download | nixlib-8a6047a525e206f07859666c21d4cc6a168c1481.tar nixlib-8a6047a525e206f07859666c21d4cc6a168c1481.tar.gz nixlib-8a6047a525e206f07859666c21d4cc6a168c1481.tar.bz2 nixlib-8a6047a525e206f07859666c21d4cc6a168c1481.tar.lz nixlib-8a6047a525e206f07859666c21d4cc6a168c1481.tar.xz nixlib-8a6047a525e206f07859666c21d4cc6a168c1481.tar.zst nixlib-8a6047a525e206f07859666c21d4cc6a168c1481.zip |
nixos/pulseaudio: increase service restart time
Pulseaudio doesn’t like being restarted too quickly.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/config/pulseaudio.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/config/pulseaudio.nix b/nixos/modules/config/pulseaudio.nix index 2939e67566c8..71ac3f9a72c4 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"; }; }; }) |