Only change zed-editor fonts on linux

This commit is contained in:
Dave Gallant
2025-09-08 15:45:50 -04:00
parent a5a0acaf69
commit 6d64acb78d

View File

@@ -216,7 +216,7 @@ in
}; };
nnn = { nnn = {
enable = true; enable = stdenv.isLinux;
package = pkgs.nnn.override ({ withNerdIcons = true; }); package = pkgs.nnn.override ({ withNerdIcons = true; });
bookmarks = { bookmarks = {
d = "~/Downloads"; d = "~/Downloads";
@@ -224,16 +224,14 @@ in
c = "~/.config"; c = "~/.config";
h = "~"; h = "~";
}; };
extraPackages = extraPackages = with pkgs; [
with pkgs;
[
bat bat
eza eza
fzf fzf
imv imv
mediainfo mediainfo
] ffmpegthumbnailer
++ lib.optionals (!stdenv.isDarwin) [ ffmpegthumbnailer ]; ];
plugins = { plugins = {
src = "${pkgs.nnn.src}/plugins"; src = "${pkgs.nnn.src}/plugins";
mappings = { mappings = {
@@ -447,10 +445,17 @@ in
edit_prediction_provider = "copilot"; edit_prediction_provider = "copilot";
}; };
vim_mode = true; vim_mode = true;
autosave = "on_focus_change";
}
// (
if pkgs.stdenv.isLinux then
{
ui_font_size = lib.mkForce 24; ui_font_size = lib.mkForce 24;
buffer_font_size = lib.mkForce 22; buffer_font_size = lib.mkForce 22;
autosave = "on_focus_change"; }
}; else
{ }
);
}; };
firefox = { firefox = {