Commit graph

36 commits

Author SHA1 Message Date
NAHO
dfc859f54d
treewide: optionalize mkTarget's humanName and name arguments
Optionalize mkTarget's 'humanName' and 'name' arguments by inferring
'humanName' from the 'name' attribute in the /modules/<MODULE>/meta.nix
file, and 'name' from the /modules/<NAME>/ directory name.

Inferring the 'humanName' and 'name' arguments ensures consistency and
reduces boilerplate.

The 'humanName' and 'name' arguments are optionalized instead of removed
because complex modules generating target derivations need to
distinguish between them.

Closes: https://github.com/nix-community/stylix/issues/1661
2025-12-10 14:48:37 +01:00
NAHO
16df6b8448
treewide: rename mkTarget's configElements and extraOptions options
Rename mkTarget's 'configElements' argument to 'config' and
'extraOptions' to 'options' to provide a more transparent interface with
the underlying Nixpkgs module system.
2025-12-10 14:48:20 +01:00
0xda157
ddc49fd564
doc: recommend 25.11 as stable branch (#2025)
Link: https://github.com/nix-community/stylix/pull/2025

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-12-02 16:33:23 -08:00
NAHO
51383904f3
doc: configuration: update broken stylix.image URL (#2014)
Link: https://github.com/nix-community/stylix/pull/2014

Reviewed-by: 0xda157 <da157@voidq.com>
2025-11-22 12:25:37 -08:00
NAHO
628e990dde
treewide: apply Nixpkgs update
Fixes: efd80454b4 ("flake: update nixpkgs input")

Co-authored-by: 0xda157 <da157@voidq.com>
2025-11-17 16:08:01 +01:00
Adrian Perez
c33226f205
doc/src/configuration: use new package name for Noto Color Emoji (#1954)
Fixes: a98c363a58 ("stylix: use new package name for Noto Color Emoji (#917)")
Link: https://github.com/nix-community/stylix/pull/1954
    
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-10-30 17:16:07 +01:00
eveeifyeve
1a83d26d4c
stylix: add config.lib.stylix.{mkHexColor,mkOpacityHexColor} functions
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-09-08 18:55:38 +02:00
NAHO
98592e3c59
doc/src/commit_convention: add subsystem nesting commit example 2025-08-27 00:48:32 +02:00
NAHO
ee128898d9
doc/src/commit_convention: consistently indicate root directories
Fixes: 57d036d922 ("doc: commit_convention: overhaul and formalize unspoken rules (#1717)")
2025-08-27 00:42:43 +02:00
awwpotato
7bd8d9c5b1
ci: ISSUE_TEMPLATE: improve and match PR template (#1836)
Link: https://github.com/nix-community/stylix/pull/1836

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-08-19 13:02:46 -07:00
NAHO
afcfed6fd2
doc: update github:danth/stylix URLs to github:nix-community/stylix (#1835)
Link: https://github.com/nix-community/stylix/pull/1835
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-08-10 19:37:56 +01:00
NAHO
f6a351a444
treewide: add awwpotato to core maintainers list 2025-08-09 21:05:18 +02:00
NAHO
ded4f29a02
doc/src/modules: fix admonition formatting (#1814)
Fixes: f826d3214b ("stylix: add generated all-maintainers file (#1654)")
Link: https://github.com/nix-community/stylix/pull/1814

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-31 18:09:17 +02:00
NAHO
57d036d922
doc: commit_convention: overhaul and formalize unspoken rules (#1717)
Link: https://github.com/nix-community/stylix/pull/1717

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-28 12:40:30 -07:00
awwpotato
f826d3214b
stylix: add generated all-maintainers file (#1654)
Link: https://github.com/nix-community/stylix/pull/1654

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
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-07-19 15:50:17 -07:00
Mateus Auler
8c854fe383
stylix: allow choosing testbed desktop (#1222)
Allow choosing the testbed desktop, ideally as a temporary solution
until migrating to the cage environment.

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

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-07-16 15:43:02 +02:00
NAHO
bba3152bd2
treewide: standardize URL format by removing trailing slashes (#1566)
Link: https://github.com/nix-community/stylix/pull/1566

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-07-06 22:18:33 +02:00
Flameopathic
9b4ecf4aca
doc: fix testbed special option doc (#1574)
Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-03 12:17:04 -07:00
Flameopathic
73b7d0f300
stylix: guard home-manager-integration config (#1494)
Closes: https://github.com/nix-community/stylix/issues/1492
Link: https://github.com/nix-community/stylix/pull/1494

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Tested-by: https://github.com/alex-massa
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-01 16:02:18 +02:00
Karun Sandhu
a6eff346d8
treewide: adjust notification colors to represent urgency (#1253)
Closes: https://github.com/nix-community/stylix/issues/1247
Link: https://github.com/nix-community/stylix/pull/1253

Reviewed-by: Mateus Auler <mateus@auler.dev>
Approved-by: https://github.com/TheMaxMur
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-25 22:41:21 +02:00
awwpotato
79e816c2e6
doc: add missing module args (#1534) 2025-06-24 15:15:46 +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
Matt Sturgeon
77a8b26520
doc: update docs on building docs (#1499) 2025-06-14 13:53:07 +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
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
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
82d9424fff
doc: init server; nix run .#docs (#1328)
Adds:

- `serve-docs` to the default devShell
- `packages.serve-docs`
- `apps.docs`

Having `apps.docs` defined causes `nix run .#docs` to run the "app"
instead of `packages.docs`. `nix build .#docs` will still build the
"package", not the "app".

The `serve-docs` script added to the devShell runs `nix run .#docs`
instead of having `packages.serve-docs` in its closure. This avoids the
devShell actually building the docs.

Added a note to `doc/src/modules.md`.

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

Reviewed-by: awwpotato <awwpotato@voidq.com>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-03 19:01:51 +02:00
Matt Sturgeon
19e48021e3 doc: add redirect for 'Standalone Nixvim'
Follow up to #1219
2025-05-27 11:05:00 -07:00
NAHO
1fdbf01ebe
stylix: reduce testbed names (#1094)
Link: https://github.com/nix-community/stylix/pull/1094

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-26 18:23:38 +02:00
Flameopathic
225b2ddbba
doc: explain testbed options (#1383)
Link: https://github.com/nix-community/stylix/pull/1383

Reviewed-by: Mateus Auler <mateus@auler.dev>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-26 14:54:39 +02:00
Matt Sturgeon
e22f96de3f
doc: update documentation to reflect #1083 (#1329)
Link: https://github.com/nix-community/stylix/pull/1329

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
2025-05-25 15:55:24 -07:00
Flameopathic
2b7ff59d81 stylix: reduce testbed names 2025-05-24 08:53:58 -04:00
awwpotato
34b5930894
doc: recommend 25.05 as stable version (#1320) 2025-05-23 12:29:21 -07:00
awwpotato
3e447578ef
doc: give consistant input version and follows instructions (#1271)
Link: https://github.com/nix-community/stylix/pull/1271

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-22 21:03:45 +02:00
Flameopathic
c4fa684471 stylix: add mkTarget function
Add the mkTarget function, providing a consistent target interface to minimize boilerplate
and automatically safeguard declarations related to disabled options.

The mkTarget function was first discussed in [1] ("extensive mkTarget
function").

[1]: https://github.com/danth/stylix/discussions/1009
2025-05-21 09:39:49 -04:00
awwpotato
fb9c22056f
doc: move to doc directory (#1272) 2025-05-20 10:26:52 +01:00