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:
K900 2024-02-16 19:42:31 +03:00
parent 5c01128ec0
commit 56eb2542da

View file

@ -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;