diff options
author | K900 <me@0upti.me> | 2024-02-16 19:42:31 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2024-02-16 19:42:31 +0300 |
commit | 56eb2542da1b201472f2a792c2ae00601c34a6a6 (patch) | |
tree | 4364f2968265111b39b0a73882afcedc2ac10a8f /nixos/modules/services/display-managers | |
parent | 5c01128ec0a607423838f82106b4bd62abc6da9c (diff) |
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.
Diffstat (limited to 'nixos/modules/services/display-managers')
-rw-r--r-- | nixos/modules/services/display-managers/greetd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/display-managers/greetd.nix b/nixos/modules/services/display-managers/greetd.nix index 2212f97a9ffe2..c2d345152de93 100644 --- a/nixos/modules/services/display-managers/greetd.nix +++ b/nixos/modules/services/display-managers/greetd.nix @@ -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; |