You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to evaluate a config with both stylix and documentation.nixos.includeAllModules = true it fails with the following error:
error:
… while evaluating a branch condition
at /nix/store/ycwxxfi2yv4nd8y66bxdc8pww9mhjwgj-source/lib/attrsets.nix:596:13:
595| name: value:
596| if isAttrs value && cond value
| ^
597| then recurse (path ++ [name]) value
… in the right operand of the AND (&&) operator
at /nix/store/ycwxxfi2yv4nd8y66bxdc8pww9mhjwgj-source/lib/attrsets.nix:596:30:
595| name: value:
596| if isAttrs value && cond value
| ^
597| then recurse (path ++ [name]) value
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'lib' missing
at /nix/store/j5w5w667z1lgkh37vi3sydm9hnbah9rx-modules/chromium/nixos.nix:5:5:
4| options.stylix.targets.chromium.enable =
5| config.lib.stylix.mkEnableTarget "Chromium, Google Chrome and Brave" true;
| ^
6|
You can reproduce by building this flake:
{inputs={nixpkgs.url="github:NixOS/nixpkgs/nixos-unstable";stylix.url="github:danth/stylix";home-manager.url="github:nix-community/home-manager";};outputs={nixpkgs,home-manager,stylix, ... }: {nixosConfigurations.repro=nixpkgs.lib.nixosSystem{system="x86_64-linux";modules=[home-manager.nixosModules.home-managerstylix.nixosModules.stylix({pkgs, ... }: {# Unimportant things to make the config evalboot.loader.grub.device="/dev/sda1";fileSystems."/".device="tmpfs";system.stateVersion="23.05";# Relevant bitsdocumentation={enable=true;nixos.includeAllModules=true;};stylix.image=pkgs.fetchurl{url="https://media.githubusercontent.com/media/lovesegfault/nix-config/bda48ceaf8112a8b3a50da782bf2e65a2b5c4708/users/bemeurer/assets/walls/plants-00.jpg";hash="sha256-n8EQgzKEOIG6Qq7og7CNqMMFliWM5vfi2zNILdpmUfI=";};})];};};}
If you try to evaluate a config with both
stylix
anddocumentation.nixos.includeAllModules = true
it fails with the following error:You can reproduce by building this flake:
The text was updated successfully, but these errors were encountered: