Commit graph

140 commits

Author SHA1 Message Date
Daniel Thwaites
7a0f30b57e
stylix: update documentation URL in palette.html (#1298) 2025-05-18 02:03:28 +00:00
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
awwpotato
1466793570
stylix: use keep-sorted (#1263)
Use keep-sorted, following Nixpkgs [1]
("workflows/check-maintainers-sorted: drop and replace with keep-sorted
#404725").

[1]: https://github.com/NixOS/nixpkgs/pull/404725

Link: https://github.com/danth/stylix/pull/1263

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-13 23:02:49 +02:00
NukDokPlex
6b8309550e
wayprompt: init (#1250)
Link: https://github.com/danth/stylix/pull/1250

Reviewed-by: awwpotato <awwpotato@voidq.com>
Co-authored-by: awwpotato <awwpotato@voidq.com>
2025-05-11 23:17:33 +00:00
NAHO
aaf976a819
stylix: emphasize compliance with Nixpkgs maintainer list (#1254)
Link: https://github.com/danth/stylix/pull/1254

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-05-11 15:31:39 -07:00
Gideon Wolfe
91f71c13b5
foliate: init (#1203)
Link: https://github.com/danth/stylix/pull/1203

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-11 19:12:05 +02:00
awwpotato
382ec4b31a
stylix: use call package for check-maintainers-sorted (#1249)
Link: https://github.com/danth/stylix/pull/1249

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-05-10 16:48:40 -07:00
awwpotato
1c71f3bde2
treewide: use lib.getExe (#1241) 2025-05-10 12:07:43 +01:00
Matt Sturgeon
b06c1cb60a
stylix: simplify font options & use literalExpression default packages (#1225) 2025-05-09 12:10:01 +01:00
awwpotato
70f331c8e7
stylix: use lib.modules.importApply (#1185)
Link: https://github.com/danth/stylix/pull/1185

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-04 23:59:47 +02:00
awwpotato
b8e2e8c730
stylix: set _file for overlays (#1214) 2025-05-04 13:05:58 -07:00
Mateus Auler
fe3feecf23
testbed: wrap autostart command in a shell script (#1204)
Allows testbeds autostart to be more complex than a single command.

Link: https://github.com/danth/stylix/pull/1204

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
2025-05-03 11:19:57 -07:00
Flameopathic
8a35410a28
treewide: add stylix.testbed.ui.{command,application} options (#1110)
Link: https://github.com/danth/stylix/pull/1110

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-04-29 19:59:16 +02:00
repparw
11ceb2fde1
spotify-player: init (#1177)
Link: https://github.com/danth/stylix/pull/1177

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-04-25 15:07:03 -07:00
NAHO
45aa31f5a4
stylix: apply standardized message convention (#1155)
Apply the standardized message convention, introduced in commit
5e8be7521e ("treewide: simplify and standardize message convention
(#796)").

Fixes: c8e4a0d218 ("treewide: optionalize stylix.image option (#717)")
Link: https://github.com/danth/stylix/pull/1155

Reviewed-by: awwpotato <153149335+awwpotato@users.noreply.github.com>
2025-04-21 22:32:53 +02:00
NAHO
6d16807fc5
Merge branch 'master' into treewide-init-maintainers 2025-04-13 19:59:13 +02:00
awwpotato
31fdf60634
stylix: disallow nixpkgs aliases in testbeds (#1124) 2025-04-09 12:08:31 +01:00
Flameopathic
8865a737ce
bat: add testbed (#1095) 2025-04-05 21:08:16 +01:00
awwpotato
581fa67c81
stylix: guard entire overlay declarations (#1088)
Closes: https://github.com/danth/stylix/issues/865
Link: https://github.com/danth/stylix/pull/1088

Tested-by: https://github.com/PedroHLC
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-04-04 16:10:55 +02:00
Flameopathic
1832ffa9a2
stylix: prevent partially declared cursor (#1080)
Closes: https://github.com/danth/stylix/issues/1064
Link: https://github.com/danth/stylix/pull/1080

Reviewed-by: awwpotato <153149335+awwpotato@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-04-02 07:06:11 -07:00
awwpotato
711bd28ac9
stylix: add missing parentheses around mkMerge (#1078)
Fixes: eb19696b18 ("stylix: add overlay module (#1048)")
Link: https://github.com/danth/stylix/pull/1078

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: https://github.com/nimr0d
2025-03-31 23:44:33 +00:00
awwpotato
eb19696b18
stylix: add overlay module (#1048)
Closes: https://github.com/danth/stylix/issues/865
Link: https://github.com/danth/stylix/pull/1048

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-31 17:36:36 +00:00
Daniel Thwaites
2fb8321ea1
stylix: add copyright notice to check-maintainers-sorted.nix (#1065)
See #1034
2025-03-27 11:46:11 +00:00
NAHO
b4feb69fd2
stylix: wrap code comment to 80 characters (#1057)
Fixes: e43eb4e2a7 ("stylix: init module maintainers framework (#977)")
Link: https://github.com/danth/stylix/pull/1057
2025-03-24 23:52:39 +01:00
NAHO
27c1d21704
stylix: remove empty line in maintainers list (#1056)
Link: https://github.com/danth/stylix/pull/1056

Reviewed-by: awwpotato <153149335+awwpotato@users.noreply.github.com>
2025-03-24 23:51:46 +01:00
awwpotato
7e9906679d
stylix: check whether maintainers list is sorted (#1014)
Link: https://github.com/danth/stylix/pull/1014

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-20 19:56:23 +01:00
Daniel Thwaites
64b4369b6b
doc: display module maintainers (#1010)
As promised at
https://github.com/danth/stylix/pull/977#pullrequestreview-2683388232,
this lists the maintainers for each module on its page in the docs.

This includes some fixes to `stylix/meta.nix`: swapped the order of
arguments to `mapAttrs`, and added an `import` to load the meta file
rather than returning its path.
2025-03-20 16:05:36 +00:00
Adam M. Szalkowski
09207f8bbd
nvf: add butzist as maintainer (#1031) 2025-03-20 09:12:19 +01:00
skoove
6421b5c2d2
hyprland: add skoove as maintainer (#1030) 2025-03-20 08:40:27 +01:00
Louis Dalibard
4286d5819c
fcitx5: add make-42 as maintainer (#1028) 2025-03-19 22:19:16 +01:00
Chet Luther
968f13d470
starship: init (#995)
Closes: https://github.com/danth/stylix/issues/301
Link: https://github.com/danth/stylix/pull/995

Reviewed-by: awwpotato <153149335+awwpotato@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-19 18:37:25 +01:00
Andrew Bell
cca176fce1
stylix: fix cursor undefined error on darwin (#1004)
Minor change to fix an error raised on Darwin. The cursor attribute was
undefined, I think after #943 was merged. Fixes #1003.
2025-03-19 12:27:40 +00:00
awwpotato
bcc674f199
stylix: simplify autoload.nix (#1001) 2025-03-15 12:09:19 +00:00
awwpotato
e43eb4e2a7
stylix: init module maintainers framework (#977)
Initialize module maintainers framework to streamline the future
population of module maintainers [1].

[1]: https://github.com/danth/stylix/issues/275

Link: https://github.com/danth/stylix/pull/977

Reviewed-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-14 19:29:51 +01:00
Flameopathic
6a2e525887
stylix: optionalize cursor and disable by default (#943)
Closes: https://github.com/danth/stylix/issues/940
Link: https://github.com/danth/stylix/pull/943

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-03-14 14:48:06 +01:00
Bernardo Meurer
9e3ab4d208
stylix: system.darwin.release -> system.darwinRelease (#989)
Fixes the issue introduced in #924
2025-03-12 17:41:39 +00:00
bricked
e3233ead63
stylix: init droid (#778)
stylix: init nixOnDroidModules.stylix module to support Nix-on-Droid

Closes: https://github.com/danth/stylix/issues/775
Link: https://github.com/danth/stylix/pull/778

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-03-11 16:10:23 +01:00
Flameopathic
fc5acae54b
stylix: add version checks (#924)
Basic release version checks for NixOS, Home Manager, nix-darwin, and Stylix.

Fixes #379

Co-authored-by: Daniel Thwaites <danth@danth.me>
2025-03-10 15:36:48 +00:00
Merrkry
a76068262c
palette: fix eval fail when image is null (#941)
Closes: https://github.com/danth/stylix/issues/911
Link: https://github.com/danth/stylix/pull/941

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Tested-by: https://github.com/bLuka
Approved-by: https://github.com/bLuka
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-09 16:15:45 +01:00
Flameopathic
3fce9fb038
treewide: propagate inputs and remove templates (#926)
Closes: https://github.com/danth/stylix/issues/238
Link: https://github.com/danth/stylix/pull/926

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-09 15:46:36 +01:00
Daniel Thwaites
a98c363a58
stylix: use new package name for Noto Color Emoji (#917)
Closes: https://github.com/danth/stylix/issues/913
Link: https://github.com/danth/stylix/pull/917

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-25 22:54:01 +01:00
NAHO
c9195530b4
stylix: apply testbed field separator check to each fields (#904)
Fixes: f121a142ab ("stylix: parametrize and change testbed field separator (#887)")
2025-02-25 11:59:31 +00:00
Flameopathic
c8e4a0d218
treewide: optionalize stylix.image option (#717)
Optionalize the stylix.image option when stylix.base16Scheme is set,
making the following Stylix configurations valid:

    [
      // Now it possible to set 'stylix.image = null', if
      // stylix.base16Scheme is set.
      {
        base16Scheme = /* ... */;
      }

      // This configuration was already possible.
      {
        image = /* ... */;
      }

      // This configuration was already possible.
      {
        base16Scheme = /* ... */;
        image = /* ... */;
      }
    ]

Closes: https://github.com/danth/stylix/issues/200
Closes: https://github.com/danth/stylix/issues/442
Link: https://github.com/danth/stylix/pull/717

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-02-24 15:13:57 +01:00
NAHO
f121a142ab
stylix: parametrize and change testbed field separator (#887)
Parametrize and change the testbed field separator to the colon (':')
character to avoid ambiguity with module names containing hyphens ('-'),
and allow testbed names to contain hyphens.

Fixes: 211a8440e7 ("stylix: support multiple testbeds per module (#858)")
2025-02-23 18:17:59 +00:00
Daniel Thwaites
f403ca101e
doc: split modules into separate pages (#873) 2025-02-23 15:50:41 +00:00
bricked
3a686a20b8
firefox: add colorTheme.enable option (#881)
Add the colorTheme.enable option to the Firefox derivatives by
installing the the Firefox Color extension.

This is not enabled by default because writing extension settings
requires manually setting 'extensions.force = true'. [1]

[1]: https://github.com/nix-community/home-manager/pull/6490

Link: https://github.com/danth/stylix/pull/881

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-22 17:27:39 +01:00
Daniel Thwaites
e87bf16df9
stylix: use absolute paths for module imports 2025-02-18 14:37:50 +00:00
Daniel Thwaites
9343b660c9
stylix: fix palette generator caching (#867)
Ensure the palette generator is properly cached by fixing the bug
introduced in commit efb734ff43 ("Prevent scheme generation from
running when result is not used (#56)"), where the added indirection
prevents the output of the palette generator becoming part of the final
system.

Using highestPrio as a condition should prevent the palette generator
being forced to run when the output is not used, which is the issue that
the indirection was meant to solve.

Link: https://github.com/danth/stylix/pull/867

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-18 13:34:14 +01:00
NAHO
ba560ec19c
stylix: prevent silently overriding testbeds with the same name (#861) 2025-02-17 12:57:25 +00:00
NAHO
211a8440e7
stylix: support multiple testbeds per module (#858)
Support multiple testbeds per module with
/modules/<MODULE>/testbeds/<TESTBED>.nix, while validating various
invariants.
2025-02-17 12:56:46 +00:00