Commit graph

406 commits

Author SHA1 Message Date
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
Daniel Thwaites
5053a63c87
vscode: convert template to Nix and refactor module (#990) 2025-03-13 15:46:07 +00:00
Daniel Thwaites
51161f1191
vscode: set profile name in testbed (#980)
Previously, the theme was not enabled in the testbed because there were
no existing profiles.
2025-03-13 15:45:32 +00:00
Daniel Thwaites
1873bc8acd
vscode: apply new update script
Applied the new alphabetical ordering, and set newly added options to
null. I will follow this up later by giving values to those options.
2025-03-12 17:36:22 +00:00
Daniel Thwaites
c5558f7de9
vscode: convert template to Nix and refactor module
Benefits:

- No need to run Mustache, so better performance
- Allows the code to be linted and formatted
- Generated file is minified
- Can use arbitrary variables to name colors and group settings
  (although this is not implemented)

Drawbacks:

- Update script is more complex

I opted to change the sorting to alphabetical order because it's
easier to implement in the update script. The script prints a list
of added and removed options, so ordering to match the upstream
documentation is not necessary.
2025-03-12 17:36:02 +00:00
MorganTL
e28bd4de28
glance: fix RGB to HSL conversion (#932)
Link: https://github.com/danth/stylix/pull/932

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-03-11 22:59:10 +01:00
Daniel Thwaites
599d5a5eca
vscode: use base01 for title bar (#979)
VSCode on Linux now uses a custom title bar by default.

This should be colored in base01 to match our theming of GTK title bars
(although this is not explicitly mentioned in the style guide).

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-11 22:54:27 +01: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
6b5afdbb3e
{firefox,floorp,librewolf}: add profile warning (#963)
Add warning for Firefox derivations without declared profiles, aligning with
commit 4853879264 ("vscode: support arbitrary profiles (#914)").

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-10 20:36:30 +01:00
lanovets
9388f64ebe
river: add cursor size and background color (#968)
Respected the cursor size set in stylix and added a background color
because the Hyprland module includes one
2025-03-10 16:03:19 +00:00
awwpotato
a742ba739b
waybar: add font option and change default to monospace (#972)
Add font option and change its default to monospace, and reduce the
scope of the 'with' keyword.

Closes: https://github.com/danth/stylix/issues/956
Link: https://github.com/danth/stylix/pull/972

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-10 16:55:50 +01:00
awwpotato
6c42dc31ef
mpv: init (#949)
Closes: https://github.com/danth/stylix/issues/185
Closes: https://github.com/danth/stylix/issues/186
Link: https://github.com/danth/stylix/pull/949

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>
2025-03-10 15:24:10 +01:00
Guilhem Saurel
6a7d563370
vim: fix incorrect input path (#976)
Follows #926
2025-03-10 14:13:49 +00:00
Flameopathic
2c20aed3b3
qt: autoenable hm module only on NixOS (#942)
Link: https://github.com/danth/stylix/pull/942

Reviewed-by: Kilian Mio <86004375+Mikilio@users.noreply.github.com>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-10 14:29:06 +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
awwpotato
6eea250b10
dunst: fix opacity rounding (#965)
Link: https://github.com/danth/stylix/pull/965

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-08 01:07:57 +01:00
awwpotato
74f1ac55d3
fnott: init (#948)
Closes: https://github.com/danth/stylix/issues/556
Link: https://github.com/danth/stylix/pull/948

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-07 21:00:40 +01:00
Adam M. Szalkowski
6fada03cd5
nvf: init (#939)
Link: https://github.com/danth/stylix/pull/939

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-07 09:22:25 +01:00
Flameopathic
4853879264
vscode: support arbitrary profiles (#914)
vscode: support arbitrary profiles

The VSCode theme is no longer only applied to any profiles by default.

Closes: https://github.com/danth/stylix/issues/908
Link: https://github.com/danth/stylix/pull/914

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-07 09:18:46 +01:00
awwpotato
1178051794
ncspot: match style guide better and add transparent bg (#938)
Link: https://github.com/danth/stylix/pull/938

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-04 19:14:47 +01:00
awwpotato
afee64f3c5
rio: add emoji font family and convert font size to pixel unit (#937)
Closes: https://github.com/danth/stylix/issues/936

Tested-by: https://github.com/NovaViper
Approved-by: https://github.com/NovaViper
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Tested-by: awwpotato <153149335+awwpotato@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-04 18:56:55 +01:00
adelille / Alexdelia
2f47285f9d
btop: memory and disk color gradient following logical color (#935)
Fixes #934
2025-03-04 12:28:41 +00:00
awwpotato
489833b201
treewide: give mustache files correct file extensions (#946)
makes the filetype of the file more clear and makes it possible for
editorconfig (#945) to work for these files
2025-03-02 23:48:43 +00:00
bricked
de4ee58990
firefox: add gnome-theme testbed (#879)
Add a gnome-theme testbed and extract the profile name in the default
testbed.

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

Co-authored-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-28 20:12:14 +01:00
bricked
c74352a145
qt: adapt to style guide (#920)
Fix Catppuccin Kvantum theme [1] theme incompatibilities with the Stylix
style guide [2], resolving issues like unreadable buttons and other
inconsistencies.

[1]: https://github.com/danth/stylix/pull/142#issue-1837991495
[2]: https://stylix.danth.me/styling.html

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-28 10:20:15 +01:00
NAHO
e7c09d2066
nixvim: expose config for nixvim's standalone mode (#415)
Link: https://github.com/danth/stylix/pull/415

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-27 09:21:07 +01:00
David Neugebauer
2111394586
Convert image path to string for Hyprlock fixing #918 (#925)
Closes: https://github.com/danth/stylix/issues/918
Fixes: c8e4a0d218 ("treewide: optionalize stylix.image option (#717)")

Tested-by: https://github.com/Stormfox2
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-27 09:11:20 +01:00
Matt Sturgeon
0a4755b656
nixvim: expose config as read-only option
Allow standalone nixvim users to take advantage of stylix by exposing
the generated config as `config.lib.stylix.nixvim.config`.

This can be passed to the nixvim derivation's `extend` function or used
directly in a nixvim configuration.
2025-02-26 02:17:32 +00:00
Matt Sturgeon
6c361e9755
nixvim: simplify enable conditions
- Use `options.programs` over `config.programs` as it is slightly cheaper.
- Prefer using the `?` operator over `builtins.hasAttr`
2025-02-26 02:10:53 +00:00
Daniel Thwaites
9d433a6b1a
swaylock: attempt to avoid infinite recursion (#899)
Although the initial pull request was approved [1], a conversation
on Matrix suggests that infinite recursion is indeed possible in
certain cases [2].

[1]: https://github.com/danth/stylix/pull/875
[2]: https://matrix.to/#/!FBhBUKKFkbUIElLvaF:danth.me/$yZz3nJYu9RgaN3736fxF1xY0BfzceGRSsvpiXSq6go4
2025-02-24 19:07:51 +00:00
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
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
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
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
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
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
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