nixos/shairport-sync: restart the systemd service on failure

This ensures shairport-sync is running, even after crashes.
This commit is contained in:
Jordan Williams 2024-11-19 06:38:34 -06:00
parent 23e89b7da8
commit dde8ee1179
No known key found for this signature in database
GPG Key ID: 9FB42B0E7F657D8C

View File

@ -103,6 +103,7 @@ in
User = cfg.user;
Group = cfg.group;
ExecStart = "${lib.getExe cfg.package} ${cfg.arguments}";
Restart = "on-failure";
RuntimeDirectory = "shairport-sync";
};
};