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)
30 lines
692 B
Nix
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; };
|
|
};
|
|
}
|
|
)
|
|
];
|
|
}
|