mirror of
https://github.com/davegallant/nix-config
synced 2025-10-03 14:26:02 +00:00
Only change zed-editor fonts on linux
This commit is contained in:
21
home.nix
21
home.nix
@@ -216,7 +216,7 @@ in
|
||||
};
|
||||
|
||||
nnn = {
|
||||
enable = true;
|
||||
enable = stdenv.isLinux;
|
||||
package = pkgs.nnn.override ({ withNerdIcons = true; });
|
||||
bookmarks = {
|
||||
d = "~/Downloads";
|
||||
@@ -224,16 +224,14 @@ in
|
||||
c = "~/.config";
|
||||
h = "~";
|
||||
};
|
||||
extraPackages =
|
||||
with pkgs;
|
||||
[
|
||||
extraPackages = with pkgs; [
|
||||
bat
|
||||
eza
|
||||
fzf
|
||||
imv
|
||||
mediainfo
|
||||
]
|
||||
++ lib.optionals (!stdenv.isDarwin) [ ffmpegthumbnailer ];
|
||||
ffmpegthumbnailer
|
||||
];
|
||||
plugins = {
|
||||
src = "${pkgs.nnn.src}/plugins";
|
||||
mappings = {
|
||||
@@ -447,10 +445,17 @@ in
|
||||
edit_prediction_provider = "copilot";
|
||||
};
|
||||
vim_mode = true;
|
||||
autosave = "on_focus_change";
|
||||
}
|
||||
// (
|
||||
if pkgs.stdenv.isLinux then
|
||||
{
|
||||
ui_font_size = lib.mkForce 24;
|
||||
buffer_font_size = lib.mkForce 22;
|
||||
autosave = "on_focus_change";
|
||||
};
|
||||
}
|
||||
else
|
||||
{ }
|
||||
);
|
||||
};
|
||||
|
||||
firefox = {
|
||||
|
Reference in New Issue
Block a user