Is the Discover auto-update an abstraction for this process? or a specific integration in plasma-discover-rpm-ostree?
My requirements for automatic updates are
dont consume much CPU load (nice-value low)
dont run when machine is on high load
dont run on low battery
dont download when on metered network
These are really easy with a systemd service, but I dont know anything about that GUI integration, how it could be configured there, or if there are any defaults on these points.
Discover directly uses the interfaces offered by rpm-ostree and not the rpm-ostreed-automatic.service. Any CPU constraints would have to be added to rpm-ostreed.service, the actual daemon running the update and any environment constraints (time of day, battery, etc.) will have to be added to Discover.
The rpm-ostree daemon only exists to be a safe mechanism to perform operations. It does not decide “when” those operations take place. It’s something else (i.e. Discover) that would have to read battery state and decide when to trigger updates.