Skip to content

Commit

Permalink
Suffix PATH on kubenix script (#67)
Browse files Browse the repository at this point in the history
Fixes #66

Setting the `PATH` to `$out/bin` is causing programs from the original `PATH` (such as `gpg`) to be inaccessible to `vals` - causing decryption of sops secrets with `gpg` to fail.
  • Loading branch information
luizribeiro authored Jun 11, 2024
1 parent 823cc87 commit a04066c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/kubenix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ symlinkJoin {

postBuild = ''
wrapProgram $out/bin/kubenix \
--set PATH "$out/bin" \
--suffix PATH : "$out/bin" \
--run 'export KUBECONFIG=''${KUBECONFIG:-${toString kubeconfig}}' \
--set KUBECTL_EXTERNAL_DIFF '${diff}' \
--set MANIFEST '${result}'
Expand Down

0 comments on commit a04066c

Please sign in to comment.