From 351d3b44f68a1bceb38deb213d2cab391d0a21f5 Mon Sep 17 00:00:00 2001 From: tux Date: Thu, 7 May 2026 17:58:48 +0530 Subject: [PATCH] feat: setup zed editor --- modules/hm/desktop/zed.nix | 35 +++++++++++++++++++++++++++++++++ modules/hosts/sirius/config.nix | 5 ----- 2 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 modules/hm/desktop/zed.nix diff --git a/modules/hm/desktop/zed.nix b/modules/hm/desktop/zed.nix new file mode 100644 index 0000000..e555af5 --- /dev/null +++ b/modules/hm/desktop/zed.nix @@ -0,0 +1,35 @@ +{ + flake.modules.homeManager.desktop = { + programs.zed-editor = { + enable = true; + extensions = [ + "lua" + "nix" + "C#" + "solidity" + ]; + userKeymaps = [ + { + context = "Workspace"; + bindings = { + F7 = "workspace::NewTerminal"; + }; + } + ]; + userSettings = { + ui_font_size = 18; + buffer_font_size = 18; + theme = { + mode = "dark"; + light = "Ayu Light"; + dark = "Ayu Dark"; + }; + vim_mode = true; + telemetry = { + diagnostics = false; + metrics = false; + }; + }; + }; + }; +} diff --git a/modules/hosts/sirius/config.nix b/modules/hosts/sirius/config.nix index 2f8eac6..0fb1355 100644 --- a/modules/hosts/sirius/config.nix +++ b/modules/hosts/sirius/config.nix @@ -72,11 +72,6 @@ # --- Programs --- programs.firefox.enable = true; - # --- Packages --- - environment.systemPackages = with pkgs; [ - zed-editor - ]; - # !!! DO NOT CHANGE THIS !!! # This should match the version used at initial install. system.stateVersion = "26.05";