Commit graph

119 commits

Author SHA1 Message Date
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
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
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
Bernardo Meurer
d8289c3f0e
ci: disable IFD (#855)
Disable IFD in the CI to prevent regressions mentioned in commit
e72aa84da1 ("{vencord,vesktop}: revert attempt to support fonts
(#844)").

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-11 22:32:56 +01:00
Daniel Thwaites
bae5cbb8fb
doc: expand description of font units (#819)
Link: https://github.com/danth/stylix/pull/819

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-03 20:34:17 +01:00
Kilian Mio
b7f50a56c3
qt: add flexible theming with sensible defaults (#780)
This extends the Qt theming improvements for KDE from PR [1] ("kde:
replace kdeglobals with Kvantum theme") to provide generic Qt theming
support in KDE and non-KDE environments.

[1]: https://github.com/danth/stylix/pull/142

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

Co-authored-by: Blusk <bluskript@gmail.com>
Co-authored-by: Jackaed <ed.andy.jackson@gmail.com>
Co-authored-by: Kilian Mio <86004375+Mikilio@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: https://github.com/Mistrustfully
Tested-by: https://github.com/eblechschmidt
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-03 18:40:41 +01:00
bricked
1d7b70ed9e
firefox: add firefoxGnomeTheme.enable option (#702)
Link: https://github.com/danth/stylix/pull/702

Tested-by: Daniel Thwaites <danth@danth.me>
Approved-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-01-06 23:18:49 +01:00
Floryan Simar
b47ef3b856
zed: init (#620)
Closes: https://github.com/danth/stylix/issues/348
Link: https://github.com/danth/stylix/pull/620

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-06 16:21:27 +01:00
NAHO
ad64260a75
treewide: add and apply nixfmt pre-commit hook
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:48:26 +01:00
NAHO
5ab7d0345a
treewide: add and apply typos pre-commit hook
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
hazel
f48cab39ba
doc: document imageScalingMode options (#709)
Document the imageScalingMode options according to swaybg, which should
be mostly universal.

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-31 18:05:32 +01:00
Daniel Thwaites
71eea3f02a
treewide: add application testbeds (#612)
Extend testbeds with individual GUI applications beyond DEs, offering the
following benefits:

- Preview PRs without changing your real configuration by running:

    nix run github:«owner»/«repository»/«branch»#testbed-«application»-«polarity»'

- Unlike local installations, testbeds reset their filesystem between rebuilds,
  ensuring each test simulates a fresh installation to identify cases requiring
  manual steps for module effectiveness.

- Enhances CI to test that configurations evaluate correctly when a module is
  enabled. The extent to which this confirms that the configuration actually
  works can vary depending on the upstream implementation of the module.

The application testbeds are currently based on GNOME but could be replaced with
a lightweight compositor like Cage [1] in the future. GNOME was chosen for the
time being due to preconfigured services, such as a secret service [2], which
some applications require.

[1]: https://github.com/cage-kiosk/cage?tab=readme-ov-file#cage-a-wayland-kiosk
[2]: https://specifications.freedesktop.org/secret-service-spec/latest
2024-12-29 22:51:00 +00:00
musjj
75f38f9edf stylix: use floats for font sizes 2024-12-22 23:08:26 +07:00
Dennis Lonoshchuk
f3c2f5a179
stylix: set GTK icon theme (#603)
Closes: https://github.com/danth/stylix/issues/458
Link: https://github.com/danth/stylix/pull/603

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: Kamron Bhavnagri <kamwithk@tuta.io>
2024-11-30 19:51:29 +01:00
Alexey Lebedeff
9b61cc39b2
stylix: don't split autoloaded modules into a separate derivation (#631)
Apparently `../modules` is creating a separate derivation that contains
only that folder, so it's now separate from the flake source. But this
transient derivation isn't mentioned explicitly anywhere in the flake
outputs. It makes it impossible to target those modules in
`disabledModules` directive.

For example, after this change is applied, users can solve issues like
https://github.com/danth/stylix/issues/577 locally, by just adding the
following snippet to their configuration:

    disabledModules = [ "${inputs.stylix}/modules/regreet/nixos.nix" ];

Reviewed-by: Daniel Thwaites <danthwaites30@btinternet.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-11-17 17:40:52 +01:00
Daniel Thwaites
195e324074
stylix: add template for application testbeds 2024-11-08 18:00:26 +00:00
Daniel Thwaites
993fcabd83
treewide: update option deprecations (#514) 2024-09-26 13:58:47 +01:00
NAHO
cf8b6e2d4e
stylix: rename base16-foot, base16-tmux, and base16-kitty inputs (#572) 2024-09-24 23:52:56 +01:00
NAHO
4b15fdcc87
stylix: remove deprecated 'stylix.palette.<BASE>' options at end-of-life
BREAKING CHANGE: Remove the deprecated 'stylix.palette.<BASE>' options.

Link: https://github.com/danth/stylix/pull/514
2024-08-26 17:45:56 +02:00
NAHO
dba4bd2d89
treewide: declare end-of-life for deprecated options
Fixes: 6858d08ed0 ("treewide: add soft deprecation dates (#506)")
Link: https://github.com/danth/stylix/pull/514
2024-08-26 17:45:26 +02:00
NAHO
6858d08ed0
treewide: add soft deprecation dates (#506)
Add soft deprecation dates to guide the hard deprecation transitions.

Fixes: 3567250ba0 ("Properly warn users that stylix.palette.* has been removed")
Fixes: 94aa0fc0fb ("nixvim: rename transparency options to camelCase (#497)")
2024-08-16 19:54:29 +01:00
Gabriel Talbert Bunt
feb2973dfa
doc: specify correct color attribute path (#491)
Colors are accessible under config.lib.stylix.colors, not lib.stylix.colors.

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-07-30 00:21:31 +01:00
NewDawn0
1ddb78df07
stylix: import missing 'stylix/opacity.nix' module on darwin (#441) 2024-06-23 16:19:52 +02:00
Bernardo Meurer
7dcab0711b
fonts: remove 'fonts.fontDir.enable' and use 'fonts.packages' (#439)
Remove the obsolete 'fonts.fontDir.enable' option and replace the
'fonts.fonts' option with 'fonts.packages'.

This should fix Stylix for nix-darwin past 58b905ea.

Closes: https://github.com/danth/stylix/issues/435
2024-06-19 11:30:25 +02:00