sops-nix icon indicating copy to clipboard operation
sops-nix copied to clipboard

[Feature?] Use from devShell flake with direnv

Open ppenguin opened this issue 2 years ago • 0 comments

Since activating secrets is "just" shell logic (called a service and/or activation script currently), it should also be possible to have sops-nix provide a function that generates a script that can be used in a devShell env?

It could set an env var like _SOPS_SCRIPT that, when executed, populates the secrets, and/or has additional functionality to make it sourcable and set env vars with secrets defined in the dev repo directly?

ppenguin avatar Feb 13 '24 07:02 ppenguin