Commit graph

1021 commits

Author SHA1 Message Date
NAHO
59d500f864
firefox: simplify derivation declaration 2025-06-25 23:20:20 +02:00
Kanade
37b8c5f680
waybar: fix attribute 'default' missing (#1541) 2025-06-25 15:49:11 +01:00
Matt Sturgeon
1fc2289454
stylix: extract testbed modules to autoload.nix (#1520)
Evaluated the set of testbed modules in a separate file from where we
create the testbed NixOS systems.

The first file (autoload.nix) has no dependency on any of Stylix's flake
inputs. The second file (default.nix) takes the matrix as a parameter,
then imports each module into a NixOS system, and wrapper script.

This will enable a partitioned flake to evaluate the set of testbeds
without needing to fully convert them into NixOS systems with
dependencies on dev-inputs.

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

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-25 02:13:25 +02:00
Matt Sturgeon
edcecc02e6
doc: remove redundant option-location filtering (#1215) 2025-06-24 15:40:06 +01:00
awwpotato
9194dd8442
waybar: use mkTarget (#1337) 2025-06-24 15:18:19 +01:00
awwpotato
79e816c2e6
doc: add missing module args (#1534) 2025-06-24 15:15:46 +01:00
awwpotato
67a6479c1a
stylix: use config in literalMD (#1529)
Fixes: 2b231cdc9b ("treewide: use config in literalExpressions (#1517)")
Link: https://github.com/nix-community/stylix/pull/1529

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-23 16:28:54 +02:00
Matt Sturgeon
100b968012 doc: ensure config is not used in option docs
With a few exceptions for `lib.stylix` functions.

Once these exceptions are removed, we will have solved the issue with
NixOS's documentation.nixos.includeAllModules option.

See https://github.com/nix-community/stylix/issues/98
2025-06-21 20:25:14 -07:00
Matt Sturgeon
e1ae98f979 doc: ensure pkgs is not used in option docs
Providing a stub `pkgs` instance that has no contents ensures the docs
does not _read_ `pkgs` anywhere.
2025-06-21 20:25:14 -07:00
Matt Sturgeon
07af242a44 doc: replace inputs input with self
The docs no longer needs access to arbitrary flake inputs. We should
enforce this strictly by taking `self` instead.
2025-06-21 20:25:14 -07:00
Matt Sturgeon
bdf092d169 doc: use minimal module evals
We don't actually need fully blown NixOS or home-manager configurations
just to read the declared `options`.

Instead, we can directly call `lib.evalModules` to build a minimal
configuration containing only stylix modules.
2025-06-21 20:25:14 -07:00
Matt Sturgeon
84f02caad3 stylix: set defaultText in font size options 2025-06-21 20:25:14 -07:00
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