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
Rename mkTarget's 'configElements' argument to 'config' and
'extraOptions' to 'options' to provide a more transparent interface with
the underlying Nixpkgs module system.
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>
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/
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 :-).