diff --git a/home/features/cli/default.nix b/home/features/cli/default.nix index 4ed94e0..8ea6bed 100644 --- a/home/features/cli/default.nix +++ b/home/features/cli/default.nix @@ -29,6 +29,12 @@ programs.bat = {enable = true;}; + programs.direnv = { + enable = true; + nix-direnv.enable = + true; + }; + programs.eza = { enable = true; enableFishIntegration = true; @@ -54,7 +60,6 @@ comma coreutils devenv - direnv fabric-ai fd gcc diff --git a/home/features/desktop/coding.nix b/home/features/desktop/coding.nix index 2340e9a..7d98ee4 100644 --- a/home/features/desktop/coding.nix +++ b/home/features/desktop/coding.nix @@ -1,3 +1,67 @@ {pkgs, ...}: { - home.packages = with pkgs; [pinned.bruno zed-editor]; + home.packages = with pkgs; [bruno]; + programs.zed-editor = { + enable = true; + userSettings = { + features = { + copilot = false; + }; + telemetry = { + metrics = false; + }; + lsp = { + rust_analyzer = { + binary = {path_lookup = true;}; + }; + }; + languages = { + Nix = { + language_servers = ["nixd"]; + formatter = { + external = { + command = "alejandra"; + arguments = ["-q" "-"]; + }; + }; + }; + Python = { + language_servers = ["pyright"]; + formatter = { + external = { + command = "black"; + arguments = ["-"]; + }; + }; + }; + }; + assistant = { + version = "2"; + default_model = { + provider = "zed.dev"; + model = "claude-3-5-sonnet-latest"; + }; + }; + language_models = { + anthropic = { + version = "1"; + api_url = "https://api.anthropic.com"; + }; + openai = { + version = "1"; + api_url = "https://api.openai.com/v1"; + }; + ollama = { + api_url = "http://localhost:11434"; + }; + }; + auto_update = false; + format_on_save = "on"; + vim_mode = true; + load_direnv = "shell_hook"; + theme = "Dracula"; + buffer_font_family = "FiraCode Nerd Font"; + ui_font_size = 16; + buffer_font_size = 16; + }; + }; } diff --git a/home/m3tam3re/m3-kratos.nix b/home/m3tam3re/m3-kratos.nix index 58c8f30..129b712 100644 --- a/home/m3tam3re/m3-kratos.nix +++ b/home/m3tam3re/m3-kratos.nix @@ -31,16 +31,16 @@ in { associations.added = { "application/zip" = ["org.gnome.FileRoller.desktop"]; "application/csv" = ["calc.desktop"]; - "application/pdf" = ["okularApplication_pdf.desktop"]; + "application/pdf" = ["io.github.zen_browser.zen.desktop"]; "x-scheme-handler/http" = ["io.github.zen_browser.zen.desktop"]; "x-scheme-handler/https" = ["io.github.zen_browser.zen.desktop"]; }; defaultApplications = { "application/zip" = ["org.gnome.FileRoller.desktop"]; "application/csv" = ["calc.desktop"]; - "application/pdf" = ["okularApplication_pdf.desktop"]; - "application/md" = ["nvim.desktop"]; - "application/text" = ["nvim.desktop"]; + "application/pdf" = ["io.github.zen_browser.zen.desktop"]; + "application/md" = ["dev.zed.Zed.desktop"]; + "application/text" = ["dev.zed.Zed.desktop"]; "x-scheme-handler/http" = ["io.github.zen_browser.zen.desktop"]; "x-scheme-handler/https" = ["io.github.zen_browser.zen.desktop"]; }; diff --git a/hosts/m3-kratos/default.nix b/hosts/m3-kratos/default.nix index 36a9237..53ff859 100644 --- a/hosts/m3-kratos/default.nix +++ b/hosts/m3-kratos/default.nix @@ -48,4 +48,10 @@ podman.enable = true; virtualisation.enable = true; }; + services.ollama = { + environmentVariables = { + HCC_AMDGPU_TARGET = "gfx1100"; + }; + rocmOverrideGfx = "11.0.0"; + }; }