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

Error on nixos #1

Closed
alexisquintero opened this issue Aug 25, 2023 · 2 comments
Closed

Error on nixos #1

alexisquintero opened this issue Aug 25, 2023 · 2 comments

Comments

@alexisquintero
Copy link

when running sudo nixos-rebuild test --flake .#

I get the following error

warning: Git tree '/home/alexis/.config/nixpkgs' is dirty
error:
       … while calling the 'seq' builtin

         at /nix/store/s4jqyj35hii03rs7j5n6vn7gpgp6ja81-source/lib/modules.nix:320:18:

          319|         options = checked options;
          320|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          321|         _module = checked (config._module);

       … while calling the 'throw' builtin

         at /nix/store/s4jqyj35hii03rs7j5n6vn7gpgp6ja81-source/lib/modules.nix:296:18:

          295|                     ''
          296|             else throw baseMsg
             |                  ^
          297|         else null;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: undefined variable 'hm'

       at /nix/store/qrzj90j2c2gqi4cs4nbazr05rwiyip1z-source/nix/hm-module.nix:24:26:

           23|       (mkIf cfg.runOnSwitch {
           24|         activation.hmd = hm.dag.entryAfter [ "linkGeneration" ] ''
             |                          ^
           25|           $VERBOSE_ECHO "Home Manager Generations Diff"
@pedorich-n
Copy link
Owner

Can I see more of your config? Make sure you are importing HMD as a part of your Home-Manager config and not as a NixOS module.
I don't have a combination of NixOS + HM config right now, but I will try to create a small flake to reproduce the issue in the VM.

@pedorich-n
Copy link
Owner

Only works on standalone HM installation right now.
See https://github.com/viperML/nh for more feature-rich application

@pedorich-n pedorich-n closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2024
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