Agenix: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny More detailed explaination |
||
| Line 43: | Line 43: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Inside the secrets directory we create a <code>secrets.nix</code> file which will be used by the agenix client as a rule file to encrypt secrets for specific users and parts of the system | Inside the secrets directory we create a <code>secrets.nix</code> file which will be used by the agenix client as a rule file to encrypt secrets for specific users and parts of the system. The following example configures access to secrets stored in <code>secret1.age</code> for the SSH public keys of <code>user1</code> and <code>system1</code>. | ||
{{file|/etc/nixos/secrets/secrets.nix|nix|<nowiki> | {{file|/etc/nixos/secrets/secrets.nix|nix|<nowiki> | ||