From 45dd700d6adc5d0f23519b074310533d66fca127 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sun, 8 Sep 2024 19:11:12 -0500 Subject: [PATCH] krewfile needs kubectl on a system level, not just imported in my shells. --- nixos/home/jahanson/workstation.nix | 2 ++ nixos/home/modules/shell/fish/default.nix | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/home/jahanson/workstation.nix b/nixos/home/jahanson/workstation.nix index 99d3c3d..4605297 100644 --- a/nixos/home/jahanson/workstation.nix +++ b/nixos/home/jahanson/workstation.nix @@ -42,10 +42,12 @@ with config; unstable.telegram-desktop unstable.tidal-hifi vlc + # cli brightnessctl # dev utils + kubectl minio-client # S3 management pre-commit # Pre-commit tasks for git shellcheck # shell script linting diff --git a/nixos/home/modules/shell/fish/default.nix b/nixos/home/modules/shell/fish/default.nix index 58fe918..bf9a764 100644 --- a/nixos/home/modules/shell/fish/default.nix +++ b/nixos/home/modules/shell/fish/default.nix @@ -47,10 +47,12 @@ in end end + # Krew + set -q KREW_ROOT; and set -gx PATH $PATH $KREW_ROOT/.krew/bin; or set -gx PATH $PATH $HOME/.krew/bin + # Paths are in reverse priority order update_path /opt/homebrew/opt/postgresql@16/bin update_path /opt/homebrew/bin - update_path ${homeDirectory}/.krew/bin update_path /nix/var/nix/profiles/default/bin update_path /run/current-system/sw/bin update_path /etc/profiles/per-user/${username}/bin