Merge branch 'master' of github.com:Kropatz/dotfiles

This commit is contained in:
Kopatz
2025-04-22 08:51:40 +02:00
23 changed files with 340 additions and 792 deletions

View File

@@ -1,45 +1,47 @@
{ osConfig, config, pkgs, inputs, lib, ... }: {
config = lib.mkIf osConfig.custom.graphical.code.enable rec {
home.activation.makeVSCodeConfigWritable =
let
configDirName = {
"vscode" = "Code";
"vscode-insiders" = "Code - Insiders";
"vscodium" = "VSCodium";
}.${programs.vscode.package.pname};
configPath =
"${config.xdg.configHome}/${configDirName}/User/settings.json";
in
{
after = [ "writeBoundary" ];
before = [ ];
data = ''
if [ -e "$(readlink ${configPath})" ]; then
install -m 0640 "$(readlink ${configPath})" ${configPath}
fi
'';
};
#home.activation.makeVSCodeConfigWritable =
# let
# configDirName = {
# "vscode" = "Code";
# "vscode-insiders" = "Code - Insiders";
# "vscodium" = "VSCodium";
# }.${programs.vscode.package.pname};
# configPath =
# "${config.xdg.configHome}/${configDirName}/User/settings.json";
# in
# {
# after = [ "writeBoundary" ];
# before = [ ];
# data = ''
# if [ -e "$(readlink ${configPath})" ]; then
# install -m 0640 "$(readlink ${configPath})" ${configPath}
# fi
# '';
# };
programs.vscode = {
enable = true;
package = pkgs.vscodium;
#userSettings = { typst-lsp.exportPdf = "onType"; };
userSettings = {
"Lua.workspace.library" = [
"/home/kopatz/.vscode-oss/extensions/evaisa.vscode-noita-api-1.4.2/out/NoitaLua"
profiles.default = {
userSettings = {
"Lua.workspace.library" = [
"/home/kopatz/.vscode-oss/extensions/evaisa.vscode-noita-api-1.4.2/out/NoitaLua"
];
"editor.mouseWheelZoom" = true;
"files.autoSave" = "afterDelay";
"clangd.path" = "/run/current-system/sw/bin/clangd";
};
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
#rust-lang.rust-analyzer broken on unstable
myriad-dreamin.tinymist
#tomoki1207.pdf latex-workshop is faster to preview pdf
james-yu.latex-workshop
twxs.cmake
llvm-vs-code-extensions.vscode-clangd
];
"editor.mouseWheelZoom" = true;
"files.autoSave" = "afterDelay";
"clangd.path" = "/run/current-system/sw/bin/clangd";
};
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
#rust-lang.rust-analyzer broken on unstable
myriad-dreamin.tinymist
#tomoki1207.pdf latex-workshop is faster to preview pdf
james-yu.latex-workshop
twxs.cmake
llvm-vs-code-extensions.vscode-clangd
];
};
};
}

View File

@@ -30,7 +30,7 @@
lua_ls.enable = true;
csharp_ls = {
enable = true;
package = pkgs.stable.csharp-ls;
package = pkgs.csharp-ls;
};
#typst-lsp.enable = true;
};