11.stylix/modules/zed/hm.nix
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

30 lines
692 B
Nix

{ mkTarget, ... }:
mkTarget {
name = "zed";
humanName = "zed";
config = [
(
{ 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; };
};
}
)
];
}