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>
(cherry picked from commit 3a332459f4)
30 lines
700 B
Nix
30 lines
700 B
Nix
{ mkTarget, ... }:
|
|
mkTarget {
|
|
name = "zed";
|
|
humanName = "zed";
|
|
|
|
configElements = [
|
|
(
|
|
{ fonts }:
|
|
{
|
|
programs.zed-editor = {
|
|
userSettings = {
|
|
"buffer_font_family" = fonts.monospace.name;
|
|
"buffer_font_size" = fonts.sizes.terminal * 4.0 / 3.0;
|
|
"ui_font_family" = fonts.sansSerif.name;
|
|
"ui_font_size" = fonts.sizes.applications * 4.0 / 3.0;
|
|
};
|
|
};
|
|
}
|
|
)
|
|
(
|
|
{ colors, inputs }:
|
|
{
|
|
programs.zed-editor = {
|
|
userSettings.theme = "Base16 ${colors.scheme-name}";
|
|
themes.stylix = colors { templateRepo = inputs.tinted-zed; };
|
|
};
|
|
}
|
|
)
|
|
];
|
|
}
|