feat(lib): make explicit secretToEnv function that converts mkSecretOption to env

This commit is contained in:
Jaka Hudoklin 2017-12-29 10:20:19 +01:00
parent 699511bf54
commit 642a31b0d0
3 changed files with 10 additions and 12 deletions

12
lib.nix
View file

@ -62,11 +62,11 @@ rec {
};
};
});
apply = value: if value == null then null else {
valueFrom.secretKeyRef = {
inherit (value) name key;
};
};
});
secretToEnv = value: {
valueFrom.secretKeyRef = {
inherit (value) name key;
};
};
}