Platonic-Systems / secrix

Other
59 stars 4 forks source link

Implement module for home-manager #21

Open Lehmanator opened 6 months ago

Lehmanator commented 6 months ago

Without a module for home-manager, I am unable to fully replace sops-nix (or agenix) with secrix.

Would be nice if there was a flake output: homeManagerModules.secrix that defined options similar to secrix.system, but for individual users under a name like secrix.users.<name>.

Some implementation ideas beyond just renaming options & adapting their config implementations to home-manager:

pinktrink commented 5 months ago

Apologies for the delay!

Allowing this to work with home-manger has certainly been on my slate. I'm hoping to have that done soon. For now, my suggestion would be to add a system secret with proper permissions, then pass it into home manager via osConfig. It's certainly not ideal, but very well may work as a stop gap.

enableSystemFallback is an interesting idea, and likely won't make it to the first iteration, but I like the idea. I'll see what I can do with it.