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

Cannot follow home-manager example #274

Closed
prescientmoon opened this issue Dec 4, 2023 · 2 comments
Closed

Cannot follow home-manager example #274

prescientmoon opened this issue Dec 4, 2023 · 2 comments

Comments

@prescientmoon
Copy link

I am trying to follow the HM example. Consider the following HM config:

          nixd = home-manager.lib.homeManagerConfiguration {
            pkgs = nixpkgs.legacyPackages."x86_64-linux";
            modules = [
              ({ lib, config, ... }: {
                home = {
                  username = "adrielus";
                  homeDirectory = "/home/${config.home.username}";
                  stateVersion = "23.05";
                };
              })
            ];
          };

Opening a .nix file shows me completion for nixos (not HM) module options. Trying to evaluate the expression manually with nix eval .#homeConfigurations.nixd.options yields

error:
       … while evaluating the attribute 'meta'

         at «none»:0: (source not available)

       … while evaluating the attribute 'doc'

         at «none»:0: (source not available)

       … while evaluating the attribute 'value'

         at /nix/store/cjvwy2rr87ir1nb6wvs9n6lvbnzlqrdg-source/lib/modules.nix:807:9:

          806|     in warnDeprecation opt //
          807|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          808|         inherit (res.defsFinal') highestPrio;

       … while calling the 'addErrorContext' builtin

         at /nix/store/cjvwy2rr87ir1nb6wvs9n6lvbnzlqrdg-source/lib/modules.nix:807:17:

          806|     in warnDeprecation opt //
          807|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |                 ^
          808|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `meta.doc':

       error: The option `meta.doc' is used but not defined.
@inclyc
Copy link
Member

inclyc commented Dec 4, 2023

It complains about

error: The option `meta.doc' is used but not defined.

Hmm, how did you setup the environment?

@prescientmoon
Copy link
Author

wdym? I have tried with a pinned version of some unstable nixpkgs 23.11. I've also tried with a similar version of 24.05 and got the same error.

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

2 participants