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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue