11.stylix/stylix
Daniel Thwaites 030af3e071
stylix: remove cfg.enable from mkEnableTarget default
The global `stylix.enable` option is not relevant to the per-target
`enable` option's default.

The individual modules should already be gated behind `stylix.enable`,
so there is no need for it to also affect the value of
`stylix.targets.«name».enable`.

This should not produce any change in behavior for correctly written
modules.

---

To give a concrete example:

```nix
{
  stylix.enable = false;
  stylix.autoEnable = true;
  stylix.targets.foo.enable = true;
}
```

Here, the `stylix.enable` option is set to `false`, so no targets should
be enabled, regardless of their per-target `enable` option's value.

However if the `foo` target assumes it only needs to read its own
`enable` option, in this example it would define its config even though
Stylix is disabled globally.
2025-05-15 03:46:35 +01:00
..
darwin stylix: use lib.modules.importApply (#1185) 2025-05-04 23:59:47 +02:00
droid stylix: use lib.modules.importApply (#1185) 2025-05-04 23:59:47 +02:00
hm stylix: use lib.modules.importApply (#1185) 2025-05-04 23:59:47 +02:00
nixos stylix: use lib.modules.importApply (#1185) 2025-05-04 23:59:47 +02:00
autoload.nix stylix: simplify autoload.nix (#1001) 2025-03-15 12:09:19 +00:00
cursor.nix stylix: prevent partially declared cursor (#1080) 2025-04-02 07:06:11 -07:00
fonts.nix stylix: simplify font options & use literalExpression default packages (#1225) 2025-05-09 12:10:01 +01:00
home-manager-integration.nix stylix: use keep-sorted (#1263) 2025-05-13 23:02:49 +02:00
icon.nix treewide: add and apply nixfmt pre-commit hook 2025-01-04 17:48:26 +01:00
maintainers.nix stylix: use keep-sorted (#1263) 2025-05-13 23:02:49 +02:00
meta.nix doc: display module maintainers (#1010) 2025-03-20 16:05:36 +00:00
opacity.nix treewide: add and apply nixfmt pre-commit hook 2025-01-04 17:48:26 +01:00
overlays.nix stylix: set _file for overlays (#1214) 2025-05-04 13:05:58 -07:00
palette.html.mustache treewide: remove tailing whitespaces (#228) 2024-01-25 08:45:05 +00:00
palette.json.mustache stylix: fix palette generator caching (#867) 2025-02-18 13:34:14 +01:00
palette.nix treewide: use lib.getExe (#1241) 2025-05-10 12:07:43 +01:00
pixel.nix treewide: use lib.getExe (#1241) 2025-05-10 12:07:43 +01:00
release.nix stylix: add version checks (#924) 2025-03-10 15:36:48 +00:00
target.nix stylix: remove cfg.enable from mkEnableTarget default 2025-05-15 03:46:35 +01:00
testbed.nix testbed: wrap autostart command in a shell script (#1204) 2025-05-03 11:19:57 -07:00