We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcdea22 commit 36faf38Copy full SHA for 36faf38
modules/age-home.nix
@@ -9,7 +9,7 @@ with lib;
9
let
10
cfg = config.age;
11
12
- ageBin = lib.getExe config.age.package;
+ ageBin = config.age.ageBin;
13
14
newGeneration = ''
15
_agenix_generation="$(basename "$(readlink "${cfg.secretsDir}")" || echo 0)"
@@ -167,6 +167,17 @@ in
167
options.age = {
168
package = mkPackageOption pkgs "age" { };
169
170
+ ageBin = mkOption {
171
+ type = types.str;
172
+ default = lib.getExe pkgs.age;
173
+ defaultText = literalExpression ''
174
+ "''${pkgs.age}/bin/age"
175
+ '';
176
+ description = ''
177
+ The age executable to use.
178
179
+ };
180
+
181
secrets = mkOption {
182
type = types.attrsOf secretType;
183
default = { };
0 commit comments