mirror of
https://github.com/ryantm/agenix.git
synced 2024-12-22 07:38:31 +03:00
modules/age: build local rage if pkgs.rage is older than 0.5.0
This commit is contained in:
parent
9b8f6c01fe
commit
ef7ec993e8
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,12 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = config.age;
|
||||
rage = pkgs.callPackage ../pkgs/rage.nix {};
|
||||
|
||||
# we need at least rage 0.5.0 to support ssh keys
|
||||
rage =
|
||||
if lib.versionOlder pkgs.rage.version "0.5.0"
|
||||
then pkgs.callPackage ./rage.nix { }
|
||||
else pkgs.rage;
|
||||
ageBin = "${rage}/bin/rage";
|
||||
|
||||
users = config.users.users;
|
||||
|
|
Loading…
Reference in a new issue