This commit is contained in:
2025-12-12 14:15:19 -05:00
parent 9fedd2d61e
commit b762b06f05
3 changed files with 12 additions and 7 deletions

View File

@@ -1,12 +1,14 @@
{ pkgs, lib, ... }:
with pkgs;
let
plugins = writeText "plugins" ''
krew
oidc-login
'';
plugins = [
"krew"
"oidc-login"
];
in {
home.activation.krew = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
$DRY_RUN_CMD ${krewfile}/bin/krewfile -command ${krew}/bin/krew -file ${plugins}
${lib.concatMapStringsSep "\n" (plugin: ''
$DRY_RUN_CMD ${krew}/bin/kubectl-krew install ${plugin} || true
'') plugins}
'';
}