Commit graph

13 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
NAHO
7b9a528d6c
treewide: replace builtins.toString with toString (#1657)
Link: https://github.com/nix-community/stylix/pull/1657

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-09 08:01:21 -07:00
awwpotato
606944b168
rofi: fix mkTarget usage (#1593)
Fixes: dea0337e0b ("stylix: restrict access to config while using mkTarget (#1368)")
Fixes: 713f8dae31 ("rofi: use mkTarget (#1550)")
2025-07-04 12:17:17 -07:00
Kanade
3a09d3f5cb
rofi: fix attribute 'size' missing (#1553)
Closes: https://github.com/nix-community/stylix/issues/1555
Fixes: 713f8dae31 ("rofi: use mkTarget (#1550)")
Link: https://github.com/nix-community/stylix/pull/1553
Link: https://github.com/nix-community/stylix/pull/1554

Co-authored-by: VuiMuich <vuimuich@quantentunnel.de>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-06-28 23:19:18 +02:00
awwpotato
713f8dae31
rofi: use mkTarget (#1550) 2025-06-28 11:11:45 +01:00
awwpotato
ff9ae322bc
treewide: clean up with and stuff (#975)
Fixes #973
2025-03-18 12:10:02 +00: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
Jalil David Salamé Messina
7682713f6a
stylix: add 'stylix.enable' option (#244)
Add a 'stylix.enable' option to enable or disable all Stylix modules in
order to resolve issues similar to [2].

To align with the default 'lib.mkEnableOption' [1] behavior,
'stylix.enable' defaults to 'false'.

BREAKING CHANGE: Stylix is disabled by default. To enable it, use:

    stylix.enable = true;

[1]: https://github.com/NixOS/nixpkgs/blob/23.11/lib/options.nix#L91-L105
[2]: https://github.com/danth/stylix/issues/216

Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
Co-authored-by: Jalil David Salamé Messina <jalil.salame@gmail.com>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-06-10 11:52:47 +02:00
Ivan
81de262bf1
rofi: allow theme customizability (#230) 2024-01-24 12:59:08 +00:00
Mason Dear
1c953ad0dc
Opacity support (#77) 2023-05-18 20:00:50 +01:00
Luc Chabassier
50dcc46fe6
Add options to set font sizes (#60)
Fixes #35 and #59

Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
2023-03-19 18:39:32 +00:00
deinferno
47412549b0
Add a rofi module (#37)
Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
2023-02-21 15:27:59 +00:00