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

No hm options #24

Open
sweenu opened this issue Jan 2, 2022 · 6 comments
Open

No hm options #24

sweenu opened this issue Jan 2, 2022 · 6 comments

Comments

@sweenu
Copy link

sweenu commented Jan 2, 2022

I'm getting the following error when updating the cache:

❯ manix "" -u --source hm_options
Building Home Manager Options cache...
Failed to update Home Manager Options

Caused by:
    0: Failed to perform IO on a cache file
    1: No such file or directory (os error 2)
Tip: If you installed your home-manager through configuration.nix you can fix this error by adding the home-manager channel with this command: nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager && nix-channel --update
Building NixOS Options cache...
Building Nixpkgs Tree cache...
Building Nixpkgs Documentation cache...

Here are my channels:

❯ nix-channel --list
home-manager https://github.com/rycee/home-manager/archive/master.tar.gz
nixos https://nixos.org/channels/nixos-unstable

I am using manix 0.6.3. Have I missed something?

@berbiche
Copy link

berbiche commented Jan 5, 2022

manix uses the wrong search path for recent versions of Home Manager.

r#"{ pkgs ? import <nixpkgs> {} }:
let
hmargs = { pkgs = pkgs; lib = import (<home-manager/modules/lib/stdlib-extended.nix>) pkgs.lib; };
docs = import (<home-manager/doc>) hmargs;
in (if builtins.isFunction docs then docs hmargs else docs).options.json

<home-manager/doc> should actually be <home-manager/docs>.

@chasecaleb
Copy link

@mlvzk Are you interested in fixing this? I could make a PR for it if you would like.

@arjan-s
Copy link

arjan-s commented Mar 8, 2023

Just found this tool and immediately hit this same issue. Seeing as there aren't any commits for almost 2 years, should this tool be considered abandoned? If so, is there another out there that does the same but works correctly?

@IogaMaster
Copy link

@arjan-s
Copy link

arjan-s commented Jan 29, 2024

Oh that's great news! I totally missed its adoption into nix-community

@IogaMaster
Copy link

Yeah, it's still relatively small, based on a fork.
I was the shepherd for it's inclusion, and am taking over as the primary maintainer

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

No branches or pull requests

5 participants