Skip to content

fix: krewRoot not working with nix home-manager#14

Merged
brumhard merged 1 commit intobrumhard:mainfrom
i10y:main
Feb 18, 2025
Merged

fix: krewRoot not working with nix home-manager#14
brumhard merged 1 commit intobrumhard:mainfrom
i10y:main

Conversation

@i10y
Copy link
Copy Markdown
Contributor

@i10y i10y commented Feb 9, 2025

I am using the nix home-manager module for krewfile.
I have configured it as follows, but regardless of what value I set for krewRoot, the default "~/.krew" is always used.

programs.krewfile = {
  enable = true;
  krewPackage = pkgs.krew;
  krewRoot = "${config.home.homeDirectory}/.local/krew";
  upgrade = true;
  plugins = [
    "auth-proxy"
    "blame"
    "df-pv"
    # "insider"
    "ktop"
    "neat"
    "resource-capacity"
    "sniff"
  ];
};

To address this issue, I changed the KREW_ROOT variable inside the script so that it is read from an environment variable.

@brumhard
Copy link
Copy Markdown
Owner

@walbi-malbi ty for the fix, makes sense 🚀

@brumhard brumhard merged commit c914853 into brumhard:main Feb 18, 2025
@brumhard
Copy link
Copy Markdown
Owner

Released in v0.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants