Skip to content

Commit 7678b2d

Browse files
committed
nix-darwin: add age plugin support
1 parent 681758a commit 7678b2d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

modules/nix-darwin/default.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,16 @@ in
290290
'';
291291
};
292292

293+
plugins = lib.mkOption {
294+
type = lib.types.listOf lib.types.package;
295+
default = [
296+
pkgs.age-plugin-fido2-hmac
297+
];
298+
description = ''
299+
List of plugins to use for sops decryption.
300+
'';
301+
};
302+
293303
generateKey = lib.mkOption {
294304
type = lib.types.bool;
295305
default = false;
@@ -386,6 +396,8 @@ in
386396
sops.environment.SOPS_GPG_EXEC = lib.mkIf (cfg.gnupg.home != null || cfg.gnupg.sshKeyPaths != [ ]) (
387397
lib.mkDefault "${pkgs.gnupg}/bin/gpg"
388398
);
399+
400+
sops.environment.PATH = lib.makeBinPath cfg.age.plugins;
389401
}
390402
];
391403
}

0 commit comments

Comments
 (0)