Commit graph

8 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
NAHO
2f1565508a modules: flatten single-attribute set declarations
(cherry picked from commit a4ffbc20ea)
2025-12-10 07:14:37 -10:00
NAHO
af85565aba
treewide: replace lib.listToAttrs with builtins.listToAttrs (#1760)
Link: https://github.com/nix-community/stylix/pull/1760

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-26 11:12:42 -07:00
awwpotato
7b2e482da7
cava: use mkTarget 2025-05-22 07:44:20 -07:00
awwpotato
49b1eb9371
cava: refactor + fix rainbow.enable description (#1276)
Link: https://github.com/danth/stylix/pull/1276
2025-05-16 10:13:53 -07: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
bricked
be3a33d589
cava: add rainbow theme option (#638)
Link: https://github.com/danth/stylix/pull/638

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-22 17:09:05 +01:00