Commit graph

615 commits

Author SHA1 Message Date
Daniel Thwaites
ebdcc2a190
doc: add module README for Firefox and derivatives (#897)
Link: https://github.com/danth/stylix/pull/897

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-24 19:10:45 +01:00
Kilian Mio
225b4c57c9
qt: adds default value for qt.platform (#884)
Add a default value for the qt.platform option, following commit d171b19c1c
("qt: add temporary warnings for plasma6 (#845)") in an effort to resolve [1]
("Stylix Kvantum is breaking plasma6").

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

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-24 19:08:08 +01:00
NAHO
59d2c0ec52
stylix: update all flake inputs (#907)
Link: https://github.com/danth/stylix/pull/907

Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-02-24 17:26:51 +01:00
Jaanonim
cbe42e21ee
treewide: rename wpaperd and vscode options (#905)
Resolve the following warnings:

    - The option `programs.wpaperd.settings' defined in
      `/nix/store/<HASH>-source/modules/wpaperd/hm.nix' has been renamed
      to `services.wpaperd.settings'.

    - The option `programs.vscode.extensions' defined in
      `/nix/store/<HASH>-source/modules/vscode/hm.nix' has been renamed
      to `programs.vscode.profiles.default.extensions'.

    - The option `programs.vscode.userSettings' defined in
      `/nix/store/<HASH>-source/modules/vscode/hm.nix' has been renamed
      to `programs.vscode.profiles.default.userSettings'.


The VSCode theme is now only applied to the 'default' profile.

Closes: https://github.com/danth/stylix/issues/903
Link: https://github.com/danth/stylix/pull/905

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-24 16:43:41 +01:00
Flameopathic
2c4b5bec36
hyprlock: fix background color definition (#906)
Fixes: c8e4a0d218 ("treewide: optionalize stylix.image option (#717)")
2025-02-24 16:35:13 +01: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
NAHO
689fd55ff2
ci: make get-derivations job fail when input command fails (#888)
Make the get-derivations job fail when the command writing to the
$GITHUB_OUTPUT file fails.

Previously, the $GITHUB_OUTPUT file was successfully created when the
input command failed, resulting in an empty $GITHUB_OUTPUT file. [1]

[1]: https://stackoverflow.com/questions/59287865
2025-02-23 17:13:26 +00:00
Daniel Thwaites
f403ca101e
doc: split modules into separate pages (#873) 2025-02-23 15:50:41 +00:00
Daniel Thwaites
1398fc4dc8
doc: use permalinks for option declarations 2025-02-23 15:20:12 +00:00
NAHO
f4401071ea
doc: add declaration entry 2025-02-23 15:20:12 +00:00
Daniel Thwaites
4c04e0dece
doc: redirect old reference pages to new location 2025-02-23 15:20:12 +00:00
Daniel Thwaites
2b2f260a69
doc: collapse platforms and modules
Collapsing is only possible for pages, not headings, so I had to
combine platforms and modules into a single section and nest them
under draft pages.

Later, we could migrate some content from the configuration page to
these draft pages to make the flow of the book more natural.
2025-02-23 15:20:12 +00:00
Daniel Thwaites
99096ef3e3
doc: clarify global option
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-23 15:20:11 +00:00
Daniel Thwaites
13667122ec
doc: standardize Bash code
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-23 15:20:11 +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
NAHO
917e07af14
plymouth: remove trailing whitespaces and consecutive empty lines (#889)
Fixes: eb7b19c260 ("plymouth: support question and message widgets (#842)")
Link: https://github.com/danth/stylix/pull/889
2025-02-21 20:52:33 +01:00
Daniel Thwaites
8b6edfdfa8
{vencord,vesktop}: remove duplicate testbeds (#885)
Link: https://github.com/danth/stylix/pull/885
Fixes: 7feb1c29bf ("discord: combine nixcord, vencord, and vesktop modules (#854)")

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-21 15:02:30 +01:00
Daniel Thwaites
c424b22396 swaylock: avoid inadvertently installing Swaylock
Avoid inadvertently installing the Swaylock package by preventing the
Home Manager module from enabling itself when 'settings != {}' and the
state version is older than 23.05 [1].

[1]: 5cfbf5cc37/modules/programs/swaylock.nix (L12-L17)

Closes: https://github.com/danth/stylix/issues/843
Link: https://github.com/danth/stylix/pull/875

Tested-by: https://github.com/niksingh710
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-20 13:48:39 +01:00
Alexandra Østermark
0779799431
rio: init (#882)
Closes: https://github.com/danth/stylix/issues/647
Link: https://github.com/danth/stylix/pull/882

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-20 13:33:04 +01:00
Daniel Thwaites
472bd50c85
doc: store module documentation as a README within the module
This has two benefits:

1. It will be displayed when browsing the module source code on
   GitHub.
2. It prevents the documentation inadvertently disappearing if the
   module directory is renamed.
2025-02-19 13:45:27 +00:00
Daniel Thwaites
7afc6fb46d
doc: describe how to create module documentation 2025-02-19 13:45:27 +00:00
Daniel Thwaites
aeb550add3
doc: remove site-url setting (#878)
Since the documentation is now hosted at https://stylix.danth.me/ rather
than https://danth.github.io/stylix/, this setting is no longer
necessary.

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-18 21:06:11 +01:00
1444
eb7b19c260
plymouth: support question and message widgets (#842)
Added support for `plymouth ask-question` and `plymouth display-message`
in the Plymouth theme. These can by pretty useful for more sophisticated
setups that require more than "please enter a password".
2025-02-18 15:25:24 +00:00
Daniel Thwaites
d6796ff307
doc: fix some alerts not being rendered by substituteInPlace 2025-02-18 14:38:27 +00:00
Daniel Thwaites
de2057a000
doc: disable section numbers
Due to new module pages being added fairly often, the section numbers
won't be stable, so they provide little benefit.
2025-02-18 14:38:27 +00:00
Daniel Thwaites
77e58881df
doc: split modules into individual pages 2025-02-18 14:38:27 +00: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
Kilian Mio
d171b19c1c
qt: add temporary warnings for plasma6 (#845)
This adds temporary warnings when plasma6 is enabled and will be
replaced with actual handling of plasma6 when styling solutions are
added upstream.

Currently, this requires a manual work around that is only reasonable on
home-manager and not on NixOS. Users will be deferred to find
workarounds in the issue when they encounter this warning.

Relates to #835

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-18 11:35:43 +00:00
Flameopathic
7feb1c29bf
discord: combine nixcord, vencord, and vesktop modules (#854)
Link: https://github.com/danth/stylix/pull/854

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-17 22:00:51 +01:00
Daniel Thwaites
21d68dab9d
firefox: update GNOME theme input (#871)
Closes: https://github.com/danth/stylix/issues/870
Link: https://github.com/danth/stylix/pull/871

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-17 14:15:49 +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
Daniel Thwaites
e86de61bb8
gnome: fix Home Manager activation (#860)
This suffers from the same issues as the KDE activation:

- The program is not available in $PATH, but should not be installed for
  all users.

- The program only works when GNOME Shell is running.

Therefore, we use a very similar solution.

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-12 16:43:34 +01: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
4af2686c1c
nixcord: use new template format (#852)
Fixes: eb5f817567 ("{vencord,vesktop}: support fonts without IFD (#846)")
Link: https://github.com/danth/stylix/pull/852

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-10 20:23:47 +01:00
soulsoiledit
7f0154c371
neovim: fix SignColumn transparency (#628)
Closes: https://github.com/danth/stylix/issues/599
Link: https://github.com/danth/stylix/pull/628

Tested-by: https://github.com/anotherhadi
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-10 18:43:06 +01:00
rkuklik
65eae5aaa2
kde: fix KDE apps ignoring colorscheme (#850)
Closes: https://github.com/danth/stylix/issues/833
Link: https://github.com/danth/stylix/pull/850

Tested-by: FirelightFlagboy <30697622+FirelightFlagboy@users.noreply.github.com>
Approved-by: FirelightFlagboy <30697622+FirelightFlagboy@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-10 18:39:18 +01:00
Flameopathic
eb5f817567
{vencord,vesktop}: support fonts without IFD (#846)
Restores commit be606eaa87
after it was reverted in e72aa84da1,
with an alternative implementation which doesn't require
import-from-derivation.
2025-02-10 11:18:14 +00:00
NAHO
2c1d493c5f
qt: respect stylix.enable (#847)
Fixes #780
2025-02-10 11:13:11 +00:00
Bernardo Meurer
e72aa84da1
{vencord,vesktop}: revert attempt to support fonts (#844)
Revert commit be606eaa87 ("{vencord,vesktop}: fonts (#840)"), which
accidentally introduced IFD and broke evaluation for flakes users.

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-09 17:11:34 +01:00
NAHO
7818098f4d
treewide: remove trailing whitespaces and add trailing newline (#841) 2025-02-08 22:20:10 +01:00
Flameopathic
be606eaa87
{vencord,vesktop}: fonts (#840)
Closes: https://github.com/danth/stylix/issues/829
Link: https://github.com/danth/stylix/pull/840

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-08 21:42:34 +01:00
rkuklik
ff8ce4f3d2
kde: make wallpaper optional and nondestructive (#823)
Link: https://github.com/danth/stylix/pull/823

Reviewed-by: Flameopathic <flameopathic@gmail.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-08 18:08:22 +01:00
1444
708770fcb0
wayfire: init (#765)
Link: https://github.com/danth/stylix/pull/765

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-08 16:49:46 +01:00
Louis Thevenet
b3ef236d22
glance: init (#827)
Link: https://github.com/danth/stylix/pull/827

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-08 16:45:50 +01:00
Oliver Jõgar
87791e0665
halloy: init (#825)
Link: https://github.com/danth/stylix/pull/825

Co-authored-by: Calvin Lee <pounce@integraldoma.in>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-08 15:29:44 +01:00
NAHO
d513f59da5
stylix: update and simplify flake-compat instructions (#816)
Link: https://github.com/danth/stylix/pull/816

Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-02-03 20:40:26 +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