From 68bf9616a8d87b93fbba075f5a705337966edbc2 Mon Sep 17 00:00:00 2001 From: Andrew Lubawy Date: Mon, 22 Jul 2024 13:40:14 -0700 Subject: [PATCH] Fix ageBin for home manager module --- modules/age-home.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/age-home.nix b/modules/age-home.nix index 7c1051f..3794bdd 100644 --- a/modules/age-home.nix +++ b/modules/age-home.nix @@ -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 = {};