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

Bug: rebuild fails after home-manager update #775

Open
gaelj opened this issue Feb 16, 2025 · 0 comments
Open

Bug: rebuild fails after home-manager update #775

gaelj opened this issue Feb 16, 2025 · 0 comments

Comments

@gaelj
Copy link

gaelj commented Feb 16, 2025

Describe the bug

This home-manager pull request breaks rebuild:

error:
       … while calling the 'head' builtin
         at /nix/store/brjzz8wv5k09bq0yrvhc1j4hd8677k21-source/lib/attrsets.nix:1574:11:
         1573|         || pred here (elemAt values 1) (head values) then
         1574|           head values
             |           ^
         1575|         else

       … while evaluating the attribute 'value'
         at /nix/store/brjzz8wv5k09bq0yrvhc1j4hd8677k21-source/lib/modules.nix:853:9:
          852|     in warnDeprecation opt //
          853|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          854|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/brjzz8wv5k09bq0yrvhc1j4hd8677k21-source/nixos/modules/system/activation/top-level.nix':

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

       error:
       Failed assertions:
       - gaj profile: `nixpkgs` options are disabled when `home-manager.useGlobalPkgs` is enabled.

I have tried to set in home-manager config programs.hyprpanel.overlay.enable = false; and load inputs.hyprpanel.overlay in the main nixpks.overlays but it does not solve the problem.

To Reproduce

  • update home-manager input
  • run nixos-rebuild

Additional context

Stylix has a similar issue. I was able to work-around that problem by temporarly using as flake input stylix.url = "github:panchoh/stylix"; # FIXME: should be github:danth/stylix.

This solves the problem on my nixos configs that do not use hyprpanel.
I have 2 configs that are virtually identical, except one uses i3 and polybar (which builds fine), and the other uses hyprland and hyprpanel (which has the build 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

1 participant