Commit graph

9 commits

Author SHA1 Message Date
NAHO
707059378b 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
(cherry picked from commit dfc859f54d)
2025-12-10 07:14:37 -10:00
NAHO
3fb65013f7 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.

(cherry picked from commit 16df6b8448)
2025-12-10 07:14:37 -10:00
awwpotato
cde06bed94
gitui: use mkTarget 2025-05-21 13:58:49 -07:00
ValentinSchwind
3194470d07
gitui: fix two typos (#1172)
Link: https://github.com/danth/stylix/pull/1172

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-04-24 16:14:26 +00:00
Louis Dalibard
a7a0682b3e
gitui: fix config.lib.stylix.colors.withHashtag typo (#1154)
Link: https://github.com/danth/stylix/pull/1154

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: awwpotato <153149335+awwpotato@users.noreply.github.com>
2025-04-22 16:05:50 +02:00
awwpotato
179220cfc2
gitui: switch from rgb to hex (#1144)
Closes: https://github.com/danth/stylix/issues/1143
Link: https://github.com/danth/stylix/pull/1144

Reviewed-by: https://github.com/ValentinSchwind
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-04-21 02:52:55 +02:00
NAHO
ad64260a75
treewide: add and apply nixfmt pre-commit hook
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:48:26 +01:00
Jalil David Salamé Messina
7682713f6a
stylix: add 'stylix.enable' option (#244)
Add a 'stylix.enable' option to enable or disable all Stylix modules in
order to resolve issues similar to [2].

To align with the default 'lib.mkEnableOption' [1] behavior,
'stylix.enable' defaults to 'false'.

BREAKING CHANGE: Stylix is disabled by default. To enable it, use:

    stylix.enable = true;

[1]: https://github.com/NixOS/nixpkgs/blob/23.11/lib/options.nix#L91-L105
[2]: https://github.com/danth/stylix/issues/216

Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
Co-authored-by: Jalil David Salamé Messina <jalil.salame@gmail.com>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-06-10 11:52:47 +02:00
Alvaro Fresquet
61c024f839
gitui: init (#354) 2024-05-06 14:19:03 +01:00