Commit graph

51 commits

Author SHA1 Message Date
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
NAHO
5b9710eee9
treewide: remove optional builtins prefixes from prelude functions (#1915)
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd --type file --exec-batch sed --in-place --regexp-extended "
      s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
      ))\>/\1/g
    "

    nix fmt

This patch is heavily inspired by [1] ("treewide: remove optional
builtins prefixes from prelude functions").

[1]: https://github.com/NixOS/nixpkgs/pull/444432

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

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-09-28 11:09:21 +02: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
awwpotato
0e7b897c73
flake: update all inputs (#1881)
Update all inputs, rename the KDE platform, and apply formatter changes
by running the following commands:

    biome check --unsafe --write
    pre-commit run --all-files

Rename the KDE platform, following local commit f47c0edcf7 ("treewide:
remove Plasma 5 support dropped upstream (#1860)") and upstream commits
[1] ("nixos/treewide: clean up some more references to deleted qt5
things") and [2] ("qt: deprecate kde6").

[1]: 31d5c4e753
[2]: 1e759786e5

Closes: https://github.com/nix-community/stylix/issues/1865
Link: https://github.com/nix-community/stylix/pull/1866
Link: https://github.com/nix-community/stylix/pull/1881

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Co-authored-by: Samuel Meenzen <samuel@meenzen.net>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-09-05 22:22:06 +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
NAHO
2e2e96f6b0
treewide: remove blank lines around 'let', 'in', and function arguments (#1700)
Link: https://github.com/nix-community/stylix/pull/1700

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-19 10:41:36 -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
Matt Sturgeon
edcecc02e6
doc: remove redundant option-location filtering (#1215) 2025-06-24 15:40:06 +01:00
awwpotato
79e816c2e6
doc: add missing module args (#1534) 2025-06-24 15:15:46 +01: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
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
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
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
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
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
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
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
03748a36d5
stylix: drop unnecessary use of self in meta.nix 2025-05-28 19:32:15 +01:00
Matt Sturgeon
eaa38e0591
doc: drop unnecessary use of self 2025-05-28 19:10:42 +01:00
Matt Sturgeon
dedf5de579 doc: enable hash-files
Adds a hash to static filenames, i.e. CSS and JS files. This is done to
invalidate browser cache when the file is changed.
2025-05-27 11:05:00 -07:00
Matt Sturgeon
19e48021e3 doc: add redirect for 'Standalone Nixvim'
Follow up to #1219
2025-05-27 11:05:00 -07:00
Matt Sturgeon
9f94e35373 doc: add JavaScript redirects
We already have HTML support for redirects built-in to MDBook, however
this only works for redirecting from _pages_. Sometimes we want to
redirect from a specific _anchor_ tag.
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
4830942fa2
treewide: remove unnecessary builtins prefix (#1322) 2025-05-21 08:51:24 +01:00