mirror of
https://github.com/ryantm/agenix.git
synced 2024-12-22 23:58:29 +03:00
Fix ageBin for home manager module
This commit is contained in:
parent
de96bd907d
commit
68bf9616a8
1 changed files with 12 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.age;
|
cfg = config.age;
|
||||||
|
|
||||||
ageBin = lib.getExe config.age.package;
|
ageBin = config.age.ageBin;
|
||||||
|
|
||||||
newGeneration = ''
|
newGeneration = ''
|
||||||
_agenix_generation="$(basename "$(readlink "${cfg.secretsDir}")" || echo 0)"
|
_agenix_generation="$(basename "$(readlink "${cfg.secretsDir}")" || echo 0)"
|
||||||
|
@ -157,6 +157,17 @@ in {
|
||||||
options.age = {
|
options.age = {
|
||||||
package = mkPackageOption pkgs "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 {
|
secrets = mkOption {
|
||||||
type = types.attrsOf secretType;
|
type = types.attrsOf secretType;
|
||||||
default = {};
|
default = {};
|
||||||
|
|
Loading…
Reference in a new issue