Commit graph

10 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
$__NUKDOKPLEX
0ba0ffe94c
wayprompt: add testbed (#1708)
Link: https://github.com/nix-community/stylix/pull/1708

Reviewed-by: pancho horrillo <pancho@pancho.name>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-16 18:40:57 +02:00
pancho horrillo
8d829119c5
wayprompt: drop '-hex' suffix on single color value (#1449)
To reduce the surprise factor when comparing to the other color specs in
this file.

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

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NukDokPlex <nukdokplex@gmail.com>
2025-06-03 18:09:02 +02:00
awwpotato
aa5e3c0333
treewide: use mkTarget (batch 3) (#1371)
Link: https://github.com/nix-community/stylix/pull/1371

Reviewed-by: pancho horrillo <pancho@pancho.name>
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-03 15:58:55 +02:00
pancho horrillo
0c0df649f7 wayprompt: add myself as maintainer 2025-05-12 10:29:19 -07:00
pancho horrillo
787a156f46 wayprompt: capitalize name
Seems that lowercase `wayprompt` refers to the actual binary, but since
the project provides three different ones, using the capitalized
form (as shown, albeit inconsistently, in its README¹) will, I think,
better identify the project as a whole.

Note that all three binaries are configured by the same configuration
file that this module provides.

¹: https://git.sr.ht/~leon_plickat/wayprompt/
2025-05-12 10:29:19 -07:00
pancho horrillo
e020f1e815 wayprompt: support opacity
Even though it is not documented, the code will parse¹ and honour the
transparency (alpha) byte. I mentioned it briefly here².

¹: 66fe87408d/item/src/Config.zig (L257)
²: fb061f555f/modules/programs/wayprompt.nix (L53)
2025-05-12 10:29:19 -07:00
pancho horrillo
89ebfe959b wayprompt: drop generation of 0x prefixes
Sorry I wasn’t clear on the Home Manager module documentation: there is
no need to prepend the '0x' prefix to the hex values, the format handler
takes care of that.

Also note that I just dropped the `lib.mapAttrs` portion, but the
automatic formatter had other ideas :-).
2025-05-12 10:29:19 -07:00
NukDokPlex
6b8309550e
wayprompt: init (#1250)
Link: https://github.com/danth/stylix/pull/1250

Reviewed-by: awwpotato <awwpotato@voidq.com>
Co-authored-by: awwpotato <awwpotato@voidq.com>
2025-05-11 23:17:33 +00:00