nixos/pulseaudio: increase service restart time
Pulseaudio doesn’t like being restarted too quickly.
This commit is contained in:
parent
5074a79937
commit
8a6047a525
|
@ -237,6 +237,7 @@ in {
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
ExecStart = binaryNoDaemon;
|
ExecStart = binaryNoDaemon;
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
RestartSec = "500ms";
|
||||||
};
|
};
|
||||||
environment = { DISPLAY = ":${toString config.services.xserver.display}"; };
|
environment = { DISPLAY = ":${toString config.services.xserver.display}"; };
|
||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
|
@ -276,6 +277,7 @@ in {
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
ExecStart = "${binaryNoDaemon} --log-level=${cfg.daemon.logLevel} --system -n --file=${myConfigFile}";
|
ExecStart = "${binaryNoDaemon} --log-level=${cfg.daemon.logLevel} --system -n --file=${myConfigFile}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
RestartSec = "500ms";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue