Commit graph

6 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
0xda157
3a332459f4
treewide: use strict mode for nixfmt (#2041)
Link: https://github.com/nix-community/stylix/pull/2041
Link: https://github.com/nix-community/stylix/pull/1976#discussion_r2539186937

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-12-05 16:05:09 -08:00
NAHO
8410296a30
anki/hm: remove unused config argument (#1821)
Link: https://github.com/nix-community/stylix/pull/1821
Fixes: 1b5e1c5642 ("anki: init (#1801)")

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-08-05 16:58:41 -07:00
NAHO
665a4ede4d
anki/meta: fix name capitalization (#1820)
Link: https://github.com/nix-community/stylix/pull/1820
Fixes: 1b5e1c5642 ("anki: init (#1801)")

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-08-04 12:05:03 -07:00
Leonard-Orlando Menzel
1b5e1c5642
anki: init (#1801)
Link: https://github.com/nix-community/stylix/pull/1801

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Co-authored-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-08-03 16:34:08 -07:00