Open poperigby opened 2 months ago
Yes. Look here: https://github.com/Mic92/sops-nix?tab=readme-ov-file#different-file-formats
the sops.defaultSopsFile
would be your common.yaml
then reference the other secret files with sopsFile
as shown in the example.
which secret files each machine can decrypt is configured in the .sops.yaml
I see. So there's no way to do it without having to specify the sopsFile
for everything besides common.yaml
? That would get pretty cumbersome sadly.
i have a common and one per host if needed. my home-manager with sops is separate
Do you manually specify the correct sopsFile
every time you use it though? I have a server and the majority of secrets are for that host.
if you have a lot - this may give you inspiration:
Thank you. I think it would be a nice feature to be able to specify multiple default sops files.
Thank you. Should I close this issue and open a new one for being able to specify multiple default sops files?
Sounds related to https://github.com/Mic92/sops-nix/pull/417.
Yeah. Seems that PR is dead though :slightly_frowning_face:.
I currently have one big YAML file for my secrets, but it's getting a bit messy. Is there a way for me to use multiple secret files that are accessible to every host? I wanted to have a secret file for each host, and then one
common.yaml
file that has common secrets.