danth / stylix

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

Image needs to be set on rebuild #406

Closed Ciflire closed 2 weeks ago

Ciflire commented 1 month ago

Hi, i've tried using the default config given by the documentation but I got this error

error:
       … while calling the 'seq' builtin

         at /nix/store/qgbn0imyridkb9527v6gnv6z3jzzprb9-source/lib/modules.nix:322:18:

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

       … while evaluating a branch condition

         at /nix/store/qgbn0imyridkb9527v6gnv6z3jzzprb9-source/lib/modules.nix:261:9:

          260|       checkUnmatched =
          261|         if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
             |         ^
          262|           let

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

       error: A definition for option `stylix.image' is not of type `path or package convertible to it'. Definition values:
       - In `/nix/store/qgbn0imyridkb9527v6gnv6z3jzzprb9-source/flake.nix': null

Someone on nix's discord potentially the source [here](https://github.com/danth/stylix/blob/5234b3d467aa803ad8d3fe898ef5673246045984/stylix/palette.nix#L67 seems to be upstream fault, they set to null by default, but set type to non-null)

Apparently default option is path/package but default is null