Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to update Home Manager Options #18

Open
BlueskyFR opened this issue Mar 1, 2024 · 5 comments · May be fixed by #20
Open

Failed to update Home Manager Options #18

BlueskyFR opened this issue Mar 1, 2024 · 5 comments · May be fixed by #20
Assignees

Comments

@BlueskyFR
Copy link

Hey!

I am requested to run nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager && nix-channel --update in order to make the HM options search work but I don't want to run it on every machine... My system config uses flakes so how can I make manix work out-of-the-box without having to run this extra command after install?

Many thanks!

@BlueskyFR
Copy link
Author

Also running the command doesn't fix it for me

@Slime90
Copy link

Slime90 commented Apr 3, 2024

I can confirm that this issue is a majorly important one for me as well (and all flake consumers)

@IogaMaster IogaMaster self-assigned this May 1, 2024
@IogaMaster
Copy link
Member

Sorry, this wasn't put into my notifications. I will investigate soon.

@zvolin zvolin linked a pull request Jun 1, 2024 that will close this issue
@zvolin
Copy link

zvolin commented Jun 1, 2024

Hey, I just came across this and tried a fix. I'm kinda new to nix and haven't tested it beyond my config (home-manager managed by nixos through flakes) but it kinda works for me.
This solution would require setting

  manual.json.enable = true;

in home configuration.

@atimofeev
Copy link

For anyone wondering how to fix this until PR is merged:

apply overlay:

final: prev: {
  manix = prev.manix.override (old: {
    rustPlatform = old.rustPlatform // {
      buildRustPackage = args:
        old.rustPlatform.buildRustPackage (args // {

          version = "0.8.0-pr20";

          src = prev.fetchFromGitHub {
            owner = "nix-community";
            repo = "manix";
            rev = "c532d14b0b59d92c4fab156fc8acd0565a0836af";
            sha256 = "sha256-Uo+4/be6rT0W8Z1dvCRXOANvoct6gJ4714flhyFzmKU=";
          };

          cargoHash = "sha256-ey8nXMCFnDSlJl+2uYYFm1YrhJ+r0sq48qtCwhqI0mo=";

        });
    };
  });
}

Add manual.json.enable = true; to home-manager config

Result:

manix --update-cache k9s
Building Home Manager Options cache...
Building Nix-Darwin Options cache...
/nix/store/ahwi51h016vzba1yr9vh7zir3vmyxbhd-options.json
Building NixOS Options cache...
Building Nixpkgs Tree cache...
Building Nixpkgs Documentation cache...
Here's what I found in nixpkgs: pkgsHostTarget.k9s pkgsExtraHardening.k9s k9s pkgsMusl.k9s pkgsBuildBuild.k9s __splicedPackages.k9s gitAndTools.k9s pkgsHostHost.k9s pkgsLinux.k9s buildPackages.k9s pkgsBuildHost.k9s pkgsStatic.k9s targetPackages.k9s pkgsTargetTarget.k9s pkgsi686Linux.k9s pkgsLLVM.k9s pkgsBuildTarget.k9s

HomeManager Options
────────────────────
# programs.k9s.plugin
Plugins written to {file}`$XDG_CONFIG_HOME/k9s/plugins.yaml (linux)`
or {file}`Library/Application Support/k9s/plugins.yaml` (darwin). See
<https://k9scli.io/topics/plugins/> for supported values.

type: YAML value

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 a pull request may close this issue.

5 participants