mirror of
https://github.com/ryantm/agenix.git
synced 2024-09-11 14:25:49 +03:00
Fix ageBin for home manager module
This commit is contained in:
parent
de96bd907d
commit
68bf9616a8
@ -8,7 +8,7 @@
|
||||
with lib; let
|
||||
cfg = config.age;
|
||||
|
||||
ageBin = lib.getExe config.age.package;
|
||||
ageBin = config.age.ageBin;
|
||||
|
||||
newGeneration = ''
|
||||
_agenix_generation="$(basename "$(readlink "${cfg.secretsDir}")" || echo 0)"
|
||||
@ -157,6 +157,17 @@ in {
|
||||
options.age = {
|
||||
package = mkPackageOption pkgs "age" {};
|
||||
|
||||
ageBin = mkOption {
|
||||
type = types.str;
|
||||
default = lib.getExe pkgs.age;
|
||||
defaultText = literalExpression ''
|
||||
"''${pkgs.age}/bin/age"
|
||||
'';
|
||||
description = ''
|
||||
The age executable to use.
|
||||
'';
|
||||
};
|
||||
|
||||
secrets = mkOption {
|
||||
type = types.attrsOf secretType;
|
||||
default = {};
|
||||
|
Loading…
Reference in New Issue
Block a user