11.stylix/doc
Matt Sturgeon 0449dae6d4
stylix: allow specifying autoEnableExpr in mkEnableTargetWith
This allows correctly documenting dynamic enable conditions.

E.g:
```nix
    enable = mkEnableTargetWith {
      name = "QT";
      autoEnable = pkgs.stdenv.hostPlatform.isLinux;
      autoEnableExpr = "pkgs.stdenv.hostPlatform.isLinux";
    };
```

`autoEnableExpr` will be wrapped in parentheses if it contains a nix
operator with lower precedence than `&&`.

Added a note in the docs mentioning `mkEnableTarget` should either have
a static `autoEnable` or specify `autoEnableExpr`.
2025-06-04 15:48:13 +01:00
..
src stylix: allow specifying autoEnableExpr in mkEnableTargetWith 2025-06-04 15:48:13 +01:00
book.toml doc: enable hash-files 2025-05-27 11:05:00 -07:00
default.nix stylix: drop unnecessary use of self in meta.nix 2025-05-28 19:32:15 +01:00
redirects.js doc: add redirect for 'Standalone Nixvim' 2025-05-27 11:05:00 -07:00
server.nix doc: init server; nix run .#docs (#1328) 2025-06-03 19:01:51 +02:00
settings.nix doc: move to doc directory (#1272) 2025-05-20 10:26:52 +01:00