-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request: toggle support for ConditionACPower option in borgmatic module #5890
Comments
I can't say whether there should be a specific option for this in the module, @DamienCassou will have to say. But I can mention that you should already be able to toggle it by adding systemd.user.services.borgmatic.Unit.ConditionACPower = lib.mkForce false; to your configuration. |
@rycee, thanks. I'm checking your tips but it seems to be a bit off, or more accurately, it's working but not in the right way. It does back up, but only when the AC power is off. When I plug the laptop into AC power, I get errors: ...
Sep 26 15:12:46 nixos-hp systemd[1622]: borgmatic backup was skipped because of an unmet condition check (ConditionACPower=false).
... When I asked for this option to be added, I wanted both battery and AC power to back up. |
Ah, sorry I got confused. Yeah, then it probably needs to be a feature of the module. Btw, could you see what systemd.user.services.borgmatic.Unit.ConditionACPower = lib.mkForce ""; does? |
@rycee, thanks. At first glance it works. Tomorrow I'll try to do it more carefully. |
@rycee, In my opinion, this code solves my problem, but would you mind to add this workaround as an option where the user can decide what state the power should be in during the backup? |
@ZlobnuDima what you are suggesting makes sense I think. Do you want to prepare a PR? |
@DamienCassou, thanks for your suggestion but I think I haven't enough knowledge to do it right way. I can try at least to do. I remain the decision on your choice. |
@ZlobnuDima thanks for trying. I don't have plans to implement it myself. |
Description
Is it possible to add support for toggle ConditionACPower option?
The text was updated successfully, but these errors were encountered: