Add option for choosing which activation method to use
I just tested this on my machine and it seems to perform fine. The default behavior is set to the "old" way, so it's not a breaking change for existing users. Opting-in should be as simple as sops.activationMethod = "systemd";
I used an enum for now, but the alternative would be to use a boolean, ie. useSystemd. I'm happy to change it.
Hi @Mic92 :wave:
Sorry to pull up an old thread but...
I think systemd is the way to go to use all features of sops-nix. I am thinking about deprecating the activation script method.
Seeing as this PR was never closed is there still any interest in switching to a systemd service instead of activation scripts?
I have a particular use case where if sops-nix were to switch to a systemd service, it would open up secrets usage for short lived systems. Right now, sops-nix assumes GPG/age/ssh keys and it requires that key material exist and a deploy/nixos-rebuild. sops, if using AWS KMS (or any other KMS), will decrypt without that material at run time if roles and access to the correct KMS key is granted. I'd be happy to work a PR if this functionality is thought useful to the project.
I'm interested in this in particular because it would allow me to use my machine's TPM as a root of trust, rather than my host SSH key.
What's the current status of the pr?