danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.23k stars 159 forks source link

Broken build on stylix/release-24.05 #645

Open zmitchell opened 3 days ago

zmitchell commented 3 days ago

Hi, initially I thought my problem was the same one as in #642, but I think it's a different problem.

Here is the error trying to build my flake:

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

       … while evaluating the option `system.build':

       … while evaluating the attribute 'mergedValue'
         at /nix/store/ly4s3hw35dd1c2vsd694y2715pc1d2c1-source/lib/modules.nix:844:5:
          843|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          844|     mergedValue =
             |     ^
          845|       if isDefined then

       … while evaluating definitions from `/nix/store/did8vrf5l7f35f3c5sx6s6mwjfczcym7-source/modules/system':

       … while evaluating the option `home-manager.users.zmitchell.home.file':

       … while evaluating definitions from `/nix/store/q1ss75nhmjiydyqw8lbzwbx7cqk8z0qq-source/modules/xresources.nix':

       … while evaluating the option `home-manager.users.zmitchell.xresources.properties':

       … while evaluating definitions from `/nix/store/879kb7aars4jciwdxxkfiins9kbym5rg-modules/xresources/hm.nix':

       … while evaluating the option `home-manager.users.zmitchell.stylix.base16Scheme':

       … while evaluating definitions from `/nix/store/q1ss75nhmjiydyqw8lbzwbx7cqk8z0qq-source/nixos/common.nix':

       … while evaluating the option `stylix.image':

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

       error: The option `stylix.image' is used but not defined.

I actually have that option commented out, so I'm not even using it in my flake. My stylix input is coming from the release-24.05 branch. The lockfile from that branch shows that the base16.nix input is locked to a revision before the slugify issue that was the root cause of #642, so I'm confused as to what's happening.

My flake is here: https://github.com/zmitchell/nixos-configs/blob/3eb99eb53d7f7cc8cb243071cf073f9da26ac553/flake.nix

And the relevant stylix config is here (note that the stylix.image line is still there, this is where I encountered the issue and I commented it out while troubleshooting, but the issue persists): https://github.com/zmitchell/nixos-configs/blob/3eb99eb53d7f7cc8cb243071cf073f9da26ac553/hosts/chonker.nix#L97

zmitchell commented 3 days ago

Setting the input to the main branch got me unstuck.