Add matlab

This commit is contained in:
Ethan Simmons
2025-08-26 17:22:27 -05:00
parent f14771fe14
commit bf25d47f15
4 changed files with 24 additions and 1 deletions

View File

@@ -18,6 +18,8 @@
llama-cpp.url = "github:ggerganov/llama.cpp";
nix-matlab.url = "gitlab:doronbehar/nix-matlab";
};
outputs = inputs@{ self
@@ -28,6 +30,7 @@
, flake-utils
, sops-nix
, llama-cpp
, nix-matlab
, ...
}:
let
@@ -234,7 +237,7 @@
pkgs = import nixpkgs {
inherit system;
overlays = with overlays; [ printrun shadps4 ];
overlays = with overlays; [ printrun shadps4 nix-matlab.overlay ];
config = {
allowUnfree = true;
permittedInsecurePackages = [

View File

@@ -65,8 +65,10 @@
environment.systemPackages = with pkgs; [
localPackages.x86_64-linux.jhelioviewer
bottles
matlab
discord
wine
matlab-language-server
];
services.printing.enable = false;

View File

@@ -14,6 +14,14 @@ iron.setup {
python = {
command = { "python3" }, -- or { "ipython", "--no-autoindent" }
format = require("iron.fts.common").bracketed_paste_python
},
matlab = {
command = {
"matlab",
"-nosplash",
"-nodesktop"
},
}
},
-- How the repl window will be displayed

View File

@@ -24,6 +24,16 @@ lspconfig.rust_analyzer.setup {
},
}
lspconfig.matlab_ls.setup {
capabilities = capabilities,
settings = {
MATLAB = {
indexWorkspace = false,
installPath = "",
},
},
}
lspconfig.omnisharp.setup {
cmd = { "dotnet", "/usr/lib/omnisharp-roslyn/OmniSharp.dll"}
}