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

nix flake causes errors #686

Closed
DockterTeagle opened this issue Jan 1, 2025 · 5 comments
Closed

nix flake causes errors #686

DockterTeagle opened this issue Jan 1, 2025 · 5 comments

Comments

@DockterTeagle
Copy link

Describe the bug
on updating to latest hyprpanel flake I get this error:

error:
       … while evaluating a branch condition
         at /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source/lib/lists.nix:125:9:
          124|       fold' = n:
          125|         if n == len
             |         ^
          126|         then nul

       … while calling the 'length' builtin
         at /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source/lib/lists.nix:123:13:
          122|     let
          123|       len = length list;
             |             ^
          124|       fold' = n:

       … while evaluating the option `programs.firefox.vendorPath':

       … while evaluating the module argument `pkgs' in "/nix/store/d09mfqwzy9r3p5ajbmpvjp6a8wydrfa0-source/modules/programs/firefox.nix:anon-1":

while evaluating the option `nixpkgs.overlays':

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

       error: The option `nixpkgs.overlays` is defined both null and not null, in `<unknown-file>' and `<unknown-file>'.
┏━ 1 Errors:
┃ error:
┃        … while evaluating a branch condition
┃          at /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source/lib/lists.nix:125:9:
┃           124|       fold' = n:
┃           125|         if n == len
|         ^
┃           126|         then nul

┃        … while calling the 'length' builtin
┃          at /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source/lib/lists.nix:123:13:
┃           122|     let
┃           123|       len = length list;
|             ^
┃           124|       fold' = n:

┃        … while evaluating the option `programs.firefox.vendorPath':

┃        … while evaluating the module argument `pkgs' in "/nix/store/d09mfqwzy9r3p5ajbmpvjp6a8wydrfa0-…

┃        … while evaluating the option `nixpkgs.overlays':

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

┃        error: The option `nixpkgs.overlays` is defined both null and not null, in `<unknown-file>' an…
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 13:23:17 after 0s
Error:
   0: Command exited with status Exited(1)

To Reproduce
update to latest flake and do home-manager switch

Expected behavior
no error to appear

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Nixos
  • Hyprland

Additional context
Add any other context about the problem here.

@DockterTeagle
Copy link
Author

at first I thought it was because I had both the home-manager module and overlay enabled but that is not the case

@kirilsh1993
Copy link

kirilsh1993 commented Jan 1, 2025

@DockterTeagle Happened to me as well, managed to get it to build by adding 'programs.hyprpanel.overlay.enable = true' to my config.
Not sure why it's failing, suspect a conflict with Firefox extensions via NUR.

note: used to build without this line, one of the recent merges caused it to start failing.

@benvonh
Copy link
Contributor

benvonh commented Jan 2, 2025

Hmmm that is pretty weird. Can you try my fork out to see if it resolves it?

{
  inputs = {
    hyprpanel.url = "github:benvonh/HyprPanel";
  };

  # ...
}

BTW, in case this info was missed, you do need to set overlay.enable unless you do it manually yourself; which you have to when using HM as a NixOS module and you set useGlobalPkgs.

@DockterTeagle
Copy link
Author

inputs.hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
...
modules = [
               inputs.hyprpanel.homeManagerModules.hyprpanel

];

does this not set the overlay? if not then yeah I did add overlay.enable = true and it fixed it

@benvonh
Copy link
Contributor

benvonh commented Jan 5, 2025

Lol no, it doesn't by default because of that case. But there should have been a custom error message that I put in telling you this information :(

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

3 participants