summaryrefslogtreecommitdiff
path: root/components/programs/zed.nix
diff options
context:
space:
mode:
authorLeonardo <noreply@leoflo.me>2026-02-28 16:27:59 +0100
committerLeonardo <noreply@leoflo.me>2026-02-28 19:02:07 +0100
commitbb11479130b0988e93408aa917cfc872d427d95f (patch)
tree58d37004d9529f927fcab0a5672bc6697d9b3c24 /components/programs/zed.nix
parent1507e4e369bd73b85f191fef20a7509283a418aa (diff)
downloadnixos-bb11479130b0988e93408aa917cfc872d427d95f.tar.gz
nixos-bb11479130b0988e93408aa917cfc872d427d95f.zip
nuovo layout
Diffstat (limited to 'components/programs/zed.nix')
-rw-r--r--components/programs/zed.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/components/programs/zed.nix b/components/programs/zed.nix
new file mode 100644
index 0000000..14f7195
--- /dev/null
+++ b/components/programs/zed.nix
@@ -0,0 +1,37 @@
+{lib, config, ...}: {
+ options.zed.enable = lib.mkEnableOption "Zed editor's config";
+
+ config = lib.mkIf config.zed.enable {
+ programs.zed-editor = {
+ enable = true;
+
+ userSettings = {
+ telemetry = {
+ metrics = false;
+ };
+
+ ui_font_size = 18;
+ buffer_font_size = 18;
+ vim_mode = false;
+
+ format_on_save = "off";
+ hard_tabs = false;
+ tab_size = 2;
+
+ theme = {
+ mode = "system";
+ light = "Gruvbox Dark Soft";
+ dark = "Gruvbox Dark Soft";
+ };
+
+ terminal = {
+ shell = {
+ program = "zsh";
+ };
+
+ cursor_shape = "bar";
+ };
+ };
+ };
+ };
+}