-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Currently I use NixOS declarative containers in my configuration. They can use agenix-rekey for secrets. To make agenix-rekey pick up the container's secrets, I separate container configuration and secret configuration of container and import the secret module file as an artificial nixosConfiguration in my flake as a module. This works fine for the basic use cases when configuration and secret definition do not overlap. This is not always the case as I may configure a module which then configures a secret. Then, my artificial configurations do not contain the implicit secrets and cannot be rekeyed.
I cannot refactor the container configuration into a separate module so I can import it in my artificial configuration as the container configuration is currently realized as a host module and is deeply tied to the host configuration. Therefore, I would like to make agenix-rekey pick up the whole container configuration including secrets without separating it into modules. However, I have no idea how to conduct this.