Closed misuzu closed 2 years ago
@misuzu Would it make sense to have the test
and dry-activate
and boot/reboot
actions as additional step in the deployment or instead of a switch
? Both is possible without much hassle, I'm thinking about what would be more useful?
I created a pull-request making the action configurable, let me know if that addresses your use case.
@misuzu Would it make sense to have the
test
anddry-activate
andboot/reboot
actions as additional step in the deployment or instead of aswitch
? Both is possible without much hassle, I'm thinking about what would be more useful?
Additional step would probably be redundant. It makes sense to, for example, run only dry-activate
, to test that deployment is configured properly without actually deploying, or run only boot
action with subsequent reboot
command, without switching running system.
Implemented and documented using env vars. Feel free to reopen if I missed something.
Maybe also add ability to pass flags like
--use-remote-sudo
while at it. Relevant code: https://github.com/pinpox/lollypops/blob/ad2d9b9504fefbcabfe92c734d80f2f3a5e3b69e/flake.nix#L95