cleanup?
This commit is contained in:
@@ -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}
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user