Merge pull request #289331 from K900/greetd-restart-on-success

nixos/greetd: only restart on success
This commit is contained in:
K900 2024-02-17 08:39:45 +03:00 committed by GitHub
commit b7efb1e376
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;