Commit graph

1009 commits

Author SHA1 Message Date
Matt Sturgeon
ab2f48fc3a stylix: only read autoEnable in mkEnableWallpaper's example
Previously the example evaluated `config.stylix.image`, which should not
be done by the docs.

Since `mkEnableWallpaper` already assumes `autoEnable` is static when it
evaluates `defaultText`, we can do the same for `example`.
2025-06-21 20:25:14 -07:00
Kelton Bassingthwaite
27721407de
discord: fix nixcord application condition (#1527)
Link: https://github.com/nix-community/stylix/pull/1527
Closes: https://github.com/nix-community/stylix/issues/1525
Fixes: faa5a34c3f ("discord: use mkTarget")

Reviewed-by: Mateus Auler <mateus@auler.dev>
Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-06-21 10:32:52 -07:00
Flameopathic
faa5a34c3f
discord: use mkTarget (#1511) 2025-06-20 23:45:19 +01:00
pancho horrillo
8c1421ae02
stylix: honour recent docs to doc renames (#1493)
Link: https://github.com/nix-community/stylix/pull/1493

Co-authored-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-19 23:38:08 +02:00
awwpotato
2b231cdc9b
treewide: use config in literalExpressions (#1517)
Link: https://github.com/nix-community/stylix/pull/1517

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-19 21:51:33 +02:00
awwpotato
82323751bc
bemenu: add defaultText to fontSize (#1513)
Link: https://github.com/nix-community/stylix/pull/1513

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-18 02:13:57 +02:00
Flameopathic
a14e525723
neovide: guard neovim config (#1495) 2025-06-15 22:37:44 +01:00
pancho horrillo
d9a4000d90
doc: add link to PULL_REQUEST_TEMPLATE.md (#1504) 2025-06-15 17:27:13 +01:00
NAHO
092a602e52
stylix: simplify mkTarget's argument trimming (#1505)
Fixes: 744385eedf ("mkTarget: allow _${arg}")
Link: https://github.com/nix-community/stylix/pull/1505

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
2025-06-15 17:56:23 +02:00
Flameopathic
ad592a0e99
wezterm: use mkTarget (#1472)
Link: https://github.com/nix-community/stylix/pull/1472

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-15 13:57:02 +02:00
Matt Sturgeon
77a8b26520
doc: update docs on building docs (#1499) 2025-06-14 13:53:07 +01:00
LemmusLemmus
751d6c5df0
doc: Add VSCode color customization tip (#1461) 2025-06-14 13:51:08 +01:00
Shahar "Dawn" Or
c79ad48561
doc: add link checking and fix broken links (#1478)
Closes: https://github.com/nix-community/stylix/issues/1474
Link: https://github.com/nix-community/stylix/pull/1478

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-13 16:26:32 +02:00
NAHO
343938594e
doc: remove redundant documentation dummy values (#1318)
Link: https://github.com/nix-community/stylix/pull/1318

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-06-13 00:39:51 +02:00
musjj
9724654e8d
yazi: update tabs theming style (#1480)
Link: https://github.com/nix-community/stylix/pull/1480

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-13 00:10:26 +02:00
Matt Sturgeon
58b1de7ebf
stylix: refactor base16Scheme and lib.stylix.colors assertion (#1446)
Instead of having a nullable `base16Scheme` option, the default will
throw when `stylix.image` is null. Not only does this better represent
the "required" nature of this option, it also ensures the assertion is
evaluated early enough to actually be checked.

This causes the assertion to evaluate when the default definition is
read, instead of later when the `assertions` option is checked.

Link: https://github.com/nix-community/stylix/pull/1446

Tested-by: https://github.com/NovaViper
Approved-by: https://github.com/NovaViper
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-13 00:00:37 +02:00
Flameopathic
75411fe2b9
swaylock: use mkTarget (#1481)
Link: https://github.com/nix-community/stylix/pull/1481

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-12 21:14:25 +02:00
Flameopathic
dcf0f17712
vscode: use mkTarget (#1477)
Link: https://github.com/nix-community/stylix/pull/1477

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-12 20:29:06 +02:00
NAHO
c117edd7ee
stylix: allow underscore in mkTarget configElements args (#1473)
Link: https://github.com/nix-community/stylix/pull/1473

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-12 20:20:53 +02:00
Boris Dudelsack
5b74d93020
k9s: apply upstream breaking changes (#1382)
Apply upstream breaking changes [1] [2].

[1]: https://github.com/derailed/k9s/releases/tag/v0.30.0
[2]: 020399c287

Link: https://github.com/nix-community/stylix/pull/1382

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-12 17:35:21 +02:00
Flameopathic
1a471ee95e
neovim: combine Neovim, Neovide, NixVim, nvf, and Vim (#1377)
Closes: https://github.com/nix-community/stylix/issues/1189
Link: https://github.com/nix-community/stylix/pull/1377

Reviewed-by: Adam M. Szalkowski <a.szalkowski@datahow.ch>
Tested-by: Adam M. Szalkowski <a.szalkowski@datahow.ch>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-12 17:28:51 +02:00
Shahar "Dawn" Or
e9eb2308ff
i3bar-river: init (#1415)
Link: https://github.com/nix-community/stylix/pull/1415

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-12 17:21:48 +02:00
Flameopathic
744385eedf mkTarget: allow _${arg} 2025-06-11 20:12:43 -04:00
Flameopathic
5d1ed786ff deadnix: ignore bindings starting with _ 2025-06-11 20:12:27 -04:00
awwpotato
e7fa0e5cc2
ncspot: use mkTarget (#1333)
Link: https://github.com/nix-community/stylix/pull/1333

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-11 21:35:58 +02:00
Shahar "Dawn" Or
6d72fc259b
fontconfig: align Home Manager with NixOS and enhance docs (#1292)
BREAKING CHANGE: The fontconfig target no longer enables Home Manager's
fonts.fontconfig.enable option and now sets Home Manager's
fonts.fontconfig.defaultFonts option instead.

Link: https://github.com/nix-community/stylix/pull/1292

Reviewed-by: awwpotato <awwpotato@voidq.com>
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-06-10 19:28:41 +02:00
Shahar "Dawn" Or
54703a4621
neovide: init (#1406)
Link: https://github.com/nix-community/stylix/pull/1406

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-10 19:11:53 +02:00
Daniel Thwaites
d73d8f6a48
treewide: use mkEnableTargetWith for dynamic autoEnable conditions (#1244)
Use the new `mkEnableTargetWith` function for dynamic `autoEnable`
conditions to prevent the evaluation of dynamic conditions during
documentation rendering.

The "same as `stylix.autoEnable`" `defaultText` is replaced with
`stylix.autoEnable` or `stylix.autoEnable && ${autoEnableExpr}`,
depending on whether `autoEnableExpr` is provided. For readability,
`autoEnable` expressions containing Nix operators of lower precedence
than `&&` are automatically wrapped in parentheses, unless
`autoWrapExpr` is disabled.

Closes: https://github.com/nix-community/stylix/issues/98
Link: https://github.com/nix-community/stylix/pull/1244

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-06-09 16:11:02 +01:00
Shahar "Dawn" Or
5869510e48
i3status-rust: apply background opacity (#1450)
Link: https://github.com/nix-community/stylix/pull/1450

Reviewed-by: pancho horrillo <pancho@pancho.name>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-08 18:01:38 +02:00
Louis Dalibard
b3e8f15fe3
blender: prevent IFD (#1467) 2025-06-08 13:31:06 +01:00
pancho horrillo
29d006198e
treewide: simplify opacity calculation (#1459) 2025-06-06 18:58:35 +00:00
awwpotato
8456dfa7f6
ci: don't check repository_owner (#1436) 2025-06-06 00:20:19 +01:00
NAHO
937a154dc3
blender: move README into meta description (#1460) 2025-06-05 19:18:59 +01:00
Louis Dalibard
a057acc112
blender: init (#1147)
Link: https://github.com/nix-community/stylix/pull/1147

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-04 18:10:45 +02:00
NAHO
0db3ec0215
flake: rename packages.«system».docs to packages.«system».doc (#1407)
Rename packages.«system».docs to packages.«system».doc, following the
discussion in [1] ("doc: move to doc directory").

[1]: https://github.com/nix-community/stylix/pull/1272#discussion_r2097630348

Link: https://github.com/nix-community/stylix/pull/1407

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-04 17:37:06 +02:00
awwpotato
c0398ebaa4
ci: add 'has: port to stable' label for backports (#1367)
Link: https://github.com/nix-community/stylix/pull/1367

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-04 17:36:45 +02:00
Matt Sturgeon
3945a2d349
flake: include 'until' in rename warning 2025-06-04 16:11:11 +01:00
Matt Sturgeon
47553c06fb
flake: rename packages.«system».docspackages.«system».doc
Use the new `perSystem.stylix.aliases` option to rename
`packages.«system».docs` and `apps.«system».docs` to `doc`.

The alias will be defined until 25.11 and will always warn when
evaluated.
2025-06-04 16:10:53 +01:00
Matt Sturgeon
88c63899c7
flake: introduce a perSystem.stylix.aliases option 2025-06-04 16:10:52 +01:00
Matt Sturgeon
289356d031
treewide: use mkEnableTargetWith for dynamic conditions
Ensure enable options with dynamic `autoEnable` are documented
correctly.
2025-06-04 15:48:14 +01:00
Matt Sturgeon
67b4644e70
stylix: use mkEnableTargetWith in mkTarget 2025-06-04 15:48:13 +01:00
Matt Sturgeon
0449dae6d4
stylix: allow specifying autoEnableExpr in mkEnableTargetWith
This allows correctly documenting dynamic enable conditions.

E.g:
```nix
    enable = mkEnableTargetWith {
      name = "QT";
      autoEnable = pkgs.stdenv.hostPlatform.isLinux;
      autoEnableExpr = "pkgs.stdenv.hostPlatform.isLinux";
    };
```

`autoEnableExpr` will be wrapped in parentheses if it contains a nix
operator with lower precedence than `&&`.

Added a note in the docs mentioning `mkEnableTarget` should either have
a static `autoEnable` or specify `autoEnableExpr`.
2025-06-04 15:48:13 +01:00
Matt Sturgeon
a4d92fea87
stylix: split mkEnableTarget into mkEnableTargetWith 2025-06-04 15:48:13 +01:00
Matt Sturgeon
92276a14a7
stylix: add mkEnableIf
Refactor `mkEnableTarget` and `mkEnableWallpaper` to use `mkEnableIf`.
2025-06-04 15:48:13 +01:00
Matt Sturgeon
93eb9c5401
stylix: simplify mkEnableTarget & mkEnableWallpaper defaultText
Drop the redundant "same as" prefix and instead use a `literalExpression`.

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-04 15:48:13 +01:00
Matt Sturgeon
df428b562d
qt: use a static autoEnable=true on NixOS 2025-06-04 15:48:12 +01:00
Matt Sturgeon
5c5d9fbc3b
flake: move deprecation module to its own directory 2025-06-04 15:31:10 +01:00
NAHO
7e9cced782
{font-packages,fontconfig}: init (#1381)
Link: https://github.com/nix-community/stylix/pull/1381

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-04 15:30:56 +02:00
Shahar "Dawn" Or
d0a956c2c1 fontconfig: init 2025-06-04 16:33:12 +07:00
Shahar "Dawn" Or
da1623cab0 font-packages: init 2025-06-04 16:30:47 +07:00