commit 9d4f3e4240ea512d82a47d8f8bec832d3753da52
parent 048ffb720d92fa765a88c7f3459d6f7e101c34d1
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 15 Nov 2019 14:40:36 +0100
profiles.kubernetes: add a krew option 👼
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/profiles/kubernetes.nix b/modules/profiles/kubernetes.nix
@@ -17,6 +17,9 @@ in
description = "Enable containers profile alongside";
type = types.bool;
};
+ krew = {
+ enable = mkEnableOption "Enable krew";
+ };
minikube = {
enable = mkOption {
default = false;
@@ -44,6 +47,9 @@ in
nur.repos.vdemeester.ko
];
}
+ (mkIf cfg.krew.enable {
+ home.packages = with pkgs; [ nur.repos.vdemeester.krew ];
+ })
(mkIf config.profiles.zsh.enable {
home.file."${config.programs.zsh.dotDir}/functions/_kubectl".source = ./assets/zsh/_kubectl;
})