mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
nixos/greetd: only restart on success
Otherwise, if the greeter/session crashes on startup, greetd enters a restart loop that requires very precise timing to kill.
This commit is contained in:
parent
5c01128ec0
commit
56eb2542da
@ -78,7 +78,7 @@ in
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.greetd.greetd}/bin/greetd --config ${settingsFormat.generate "greetd.toml" cfg.settings}";
|
||||
|
||||
Restart = mkIf cfg.restart "always";
|
||||
Restart = mkIf cfg.restart "on-success";
|
||||
|
||||
# Defaults from greetd upstream configuration
|
||||
IgnoreSIGPIPE = false;
|
||||
|
Loading…
Reference in New Issue
Block a user