Commit graph

10 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
Vidhan Bhatt
83ff4d112b
ghostty: scale font on darwin (#1988)
Link: https://github.com/nix-community/stylix/pull/1988

Reviewed-by: Ian Holloway <72767437+IanHollow@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-11-20 18:12:54 +01:00
NAHO
46ab7e000e
ghostty: convert font-size setting from px to pt (#1990)
Convert the font-size setting from px to pt by reverting commit
3e2c930ce0 ("ghostty: convert font-size setting from pt to px
(#1971)") because Ghostty measures font size in points, which was
previously incorrectly determined.

Link: https://github.com/nix-community/stylix/pull/1990
Reverts: 3e2c930ce0 ("ghostty: convert font-size setting from pt to px (#1971)")

Reviewed-by: pancho horrillo <pancho@pancho.name>
2025-11-19 19:05:21 +01:00
Ian Holloway
3e2c930ce0
ghostty: convert font-size setting from pt to px (#1971)
Closes: https://github.com/nix-community/stylix/issues/1965
Link: https://github.com/nix-community/stylix/pull/1971

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-11-18 15:06:06 +01:00
awwpotato
7ffb31da69
treewide: use mkTarget (batch 2) (#1362)
Link: https://github.com/nix-community/stylix/pull/1362

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-23 19:23:39 +02:00
awwpotato
c8bc1c1d9e
treewide: remove use of multiple with statements (#1085) 2025-04-08 23:22:18 +01:00
Mike Forster
d5f02b5410
ghostty: be consistent with other terminals (#806)
This uses the same color mapping as Alacritty [1], WezTerm [2], and
Kitty [5], and is consistent with mkSchemeAttrs [3] and base16-shell
[4].

[1]: /modules/alacritty/hm.nix
[2]: /modules/wezterm/hm.nix
[3]: https://github.com/SenchoPens/base16.nix/blob/main/DOCUMENTATION.md#mkschemeattrs
[4]: https://github.com/chriskempson/base16-shell
[5]: https://github.com/tinted-theming/tinted-kitty/blob/main/templates/base16.mustache

Link: https://github.com/danth/stylix/pull/806

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-26 21:42:11 +01: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
Mirza Arnaut
6eb0597e34
ghostty: init (#703)
Link: https://github.com/danth/stylix/pull/703

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-01-02 20:01:16 +01:00