Closed SolidRhino closed 6 months ago
I want to add Stylix with the option to generate a wallpaper dynamically (See this option). But if I use this example:
stylix = { image = config.lib.stylix.pixel "base0A"; base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-latte.yaml"; };
I get the following error:
error: undefined variable 'config' at /nix/store/lghn0x32saqcp5in1sw8jm04h2cvd4vv-source/flake.nix:90:25: 89| stylix = { 90| image = config.lib.stylix.pixel "base0A"; | ^ 91| base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-latte.yaml";
How can I fix this?
Make sure the first line of the file that looks like { pkgs, lib, ... }: etc includes config.
config
Hi @SolidRhino, any luck with this?
Closing, if you have future questions, please don't hesitate to reach out.
I want to add Stylix with the option to generate a wallpaper dynamically (See this option). But if I use this example:
I get the following error:
How can I fix this?