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
This commit is contained in:
NAHO 2025-07-19 11:28:36 +02:00
parent 16df6b8448
commit dfc859f54d
No known key found for this signature in database
GPG key ID: BFB5D5E3F4C95185
108 changed files with 52 additions and 327 deletions

View file

@ -1,8 +1,5 @@
{ mkTarget, lib, ... }:
mkTarget {
name = "btop";
humanName = "btop";
config = [
(
{ opacity }: