mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-02-22 21:05:44 +08:00
feat: add age plugin and fido2 hmac support
Co-authored-by: brianmcgee <brian@41north.dev>
This commit is contained in:
parent
d7593b87b0
commit
899e202643
4 changed files with 31 additions and 0 deletions
|
|
@ -308,6 +308,14 @@ in
|
|||
Paths to ssh keys added as age keys during sops description.
|
||||
'';
|
||||
};
|
||||
|
||||
plugins = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
default = [ ];
|
||||
description = ''
|
||||
List of plugins to use for sops decryption.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
gnupg = {
|
||||
|
|
@ -395,6 +403,7 @@ in
|
|||
sops.environment.SOPS_GPG_EXEC = lib.mkIf (cfg.gnupg.home != null || cfg.gnupg.sshKeyPaths != [ ]) (
|
||||
lib.mkDefault "${cfg.gnupg.package}/bin/gpg"
|
||||
);
|
||||
sops.environment.PATH = lib.mkIf (cfg.age.plugins != [ ]) (lib.makeBinPath cfg.age.plugins);
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue