From a88204fbc9ddec3474186bc5a3f3c573ee787289 Mon Sep 17 00:00:00 2001 From: schererleander Date: Tue, 3 Feb 2026 17:55:59 +0100 Subject: refactor(module): simplify modules and integrate sops-nix --- modules/home/editors/zed/default.nix | 70 ++---------------------------------- 1 file changed, 3 insertions(+), 67 deletions(-) (limited to 'modules/home/editors/zed/default.nix') diff --git a/modules/home/editors/zed/default.nix b/modules/home/editors/zed/default.nix index 58835fb..5fe90ed 100644 --- a/modules/home/editors/zed/default.nix +++ b/modules/home/editors/zed/default.nix @@ -5,82 +5,18 @@ }: let - inherit (lib) - mkEnableOption - mkOption - types - mkIf - optionals - ; + inherit (lib) mkEnableOption mkIf; cfg = config.nx.editors.zed-editor; in { options.nx.editors.zed-editor = { enable = mkEnableOption "zed editor"; - - langs = { - nix = mkOption { - description = "enable nix integration"; - type = types.bool; - default = true; - }; - python = mkOption { - description = "enable python integration"; - type = types.bool; - default = false; - }; - rust = mkOption { - description = "enable rust integration"; - type = types.bool; - default = false; - }; - go = mkOption { - description = "enable go integration"; - type = types.bool; - default = false; - }; - lua = mkOption { - description = "enable lua integration"; - type = types.bool; - default = false; - }; - docker = mkOption { - description = "enable docker integration"; - type = types.bool; - default = false; - }; - java = mkOption { - description = "enable java integration"; - type = types.bool; - default = false; - }; - cmake = mkOption { - description = "enable cmake integration"; - type = types.bool; - default = false; - }; - toml = mkOption { - description = "enable toml integration"; - type = types.bool; - default = false; - }; - }; }; config = mkIf cfg.enable { programs.zed-editor = { enable = true; - extensions = - [ ] - ++ (optionals cfg.langs.nix [ "nix" ]) - ++ (optionals cfg.langs.python [ "python" ]) - ++ (optionals cfg.langs.rust [ "rust" ]) - ++ (optionals cfg.langs.go [ "go" ]) - ++ (optionals cfg.langs.lua [ "lua" ]) - ++ (optionals cfg.langs.docker [ "dockerfile" ]) - ++ (optionals cfg.langs.java [ "java" ]) - ++ (optionals cfg.langs.cmake [ "cmake" ]) - ++ (optionals cfg.langs.toml [ "toml" ]); + extensions = [ "nix" ]; userSettings = { telemetry = { metrics = false; @@ -113,4 +49,4 @@ in }; }; }; -} +} \ No newline at end of file -- cgit v1.3.1