Revert "remove vscode"

This reverts commit 92a17c494b.
This commit is contained in:
Charlotte 🦝 Delenk 2022-07-23 19:28:31 +01:00
parent 47fcd79ca0
commit 6cb4a8b4cf
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 280 additions and 0 deletions

View file

@ -26,6 +26,7 @@
../programs/keybase.nix
../programs/keepass.nix
../programs/kicad.nix
../programs/vscode
../programs/misc.nix
../programs/mail.nix
../programs/kitty.nix

View file

@ -0,0 +1,71 @@
{pkgs, ...}: {
programs.vscode = {
enable = true;
mutableExtensionsDir = false;
extensions =
[
(pkgs.callPackage ../../../packages/rust-analyzer.nix {})
]
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace (import ./extensions.nix).extensions;
userSettings = {
"diffEditor.codeLens" = true;
"editor.bracketPairColorization.enabled" = true;
"editor.cursorSmoothCaretAnimation" = true;
"editor.cursorSurroundingLines" = 3;
"editor.foldingImportsByDefault" = true;
"editor.fontFamily" = "'FiraCode Nerd Font Mono', 'Noto Sans Mono CJK', monospace";
"editor.fontLigatures" = true;
"editor.formatOnPaste" = true;
"editor.formatOnSave" = true;
"editor.formatOnType" = true;
"editor.guides.bracketPairs" = true;
"editor.inlineSuggest.enabled" = true;
"editor.renderWhitespace" = "all";
"editor.smoothScrolling" = true;
"editor.suggest.localityBonus" = true;
"editor.suggest.preview" = true;
"editor.suggest.shareSuggestSelections" = true;
"editor.tabCompletion" = "on";
"editor.tabSize" = 2;
"editor.multiCursorModifier" = "ctrlCmd"; # Multi-Cursor wont work otherwise
"explorer.experimental.fileNesting.enabled" = true;
"files.insertFinalNewline" = true;
"files.trimFinalNewlines" = true;
"files.trimTrailingWhitespace" = true;
"git.autoStash" = true;
"git.autofetch" = true;
"git.enableCommitSigning" = true;
"git.enableSmartCommit" = true;
"git.fetchOnPull" = true;
"git.rebaseWhenSync" = true;
"nix.enableLanguageServer" = true;
"nix.serverPath" = "${pkgs.rnix-lsp}/bin/rnix-lsp";
"search.smartCase" = true;
"telemetry.telemetryLevel" = "off";
"update.mode" = "none";
"workbench.colorTheme" = "Monokai";
"workbench.commandPalette.preserveInput" = true;
"workbench.iconTheme" = "material-icon-theme";
"workbench.list.smoothScrolling" = true;
"C_Cpp.intelliSenseEngine" = "Disabled";
"C_Cpp.autocomplete" = "Disabled";
"C_Cpp.errorSquiggles" = "Disabled";
"clang-tidy.executable" = "${pkgs.llvmPackages_latest.clang-unwrapped}/bin/clang-tidy";
"cmake.cmakePath" = "${pkgs.cmake}/bin/cmake";
"github.copilot.enable" = {"*" = true;};
"crates.listPreReleases" = true;
"css.format.spaceAroundSelectorSeparator" = true;
"less.format.spaceAroundSelectorSeparator" = true;
"scss.format.spaceAroundSelectorSeparator" = true;
"vscode-dhall-lsp-server.executable" = "${pkgs.dhall-lsp-server}/bin/dhall-lsp-server";
"doxdocgen.generic.useGitUserEmail" = true;
"doxdocgen.generic.useGitUserName" = true;
"git.confirmSync" = false;
"clangd.path" = "${pkgs.llvmPackages_latest.clang-unwrapped}/bin/clangd";
"verilog.ctags.path" = "${pkgs.ctags}/bin/ctags";
"verilog.languageServer" = "${pkgs.svls}/bin/svls";
"verilog.linting.linter" = "${pkgs.verilator}/bin/verilator";
"redhat.telemetry.enabled" = false; # FUCK OFF
};
};
}

View file

@ -0,0 +1,208 @@
{
extensions = [
{
name = "vscode-openapi";
publisher = "42Crunch";
version = "4.9.5";
sha256 = "125ajcb7vig6a1gnplblqgygw1plg4h3wwfdpzcadzb3lh2g5029";
}
{
name = "Nix";
publisher = "bbenoist";
version = "1.0.1";
sha256 = "0zd0n9f5z1f0ckzfjr38xw2zzmcxg1gjrava7yahg5cvdcw6l35b";
}
{
name = "vscode-direnv";
publisher = "cab404";
version = "1.0.0";
sha256 = "0xikkhbzb5cd0a96smj5mr1sz5zxrmryhw56m0139sbg7zwwfwps";
}
{
name = "pioasm";
publisher = "chris-hock";
version = "1.0.0";
sha256 = "09p7cbk7hnhl9q4viscfy45fq1gv16xf0dm97s8hfpcz2w6fmw1q";
}
{
name = "doxdocgen";
publisher = "cschlosser";
version = "1.4.0";
sha256 = "1d95znf2vsdzv9jqiigh9zm62dp4m9jz3qcfaxn0n0pvalbiyw92";
}
{
name = "dhall-lang";
publisher = "dhall";
version = "0.0.4";
sha256 = "0sa04srhqmngmw71slnrapi2xay0arj42j4gkan8i11n7bfi1xpf";
}
{
name = "vscode-dhall-lsp-server";
publisher = "dhall";
version = "0.0.4";
sha256 = "1zin7s827bpf9yvzpxpr5n6mv0b5rhh3civsqzmj52mdq365d2js";
}
{
name = "gitlens";
publisher = "eamodio";
version = "12.0.7";
sha256 = "0g5kxc3b6hhxhjvmdviviy7yv615nqi92wqv1rg7wzv1vg565y40";
}
{
name = "EditorConfig";
publisher = "EditorConfig";
version = "0.16.4";
sha256 = "0fa4h9hk1xq6j3zfxvf483sbb4bd17fjl5cdm3rll7z9kaigdqwg";
}
{
name = "copilot";
publisher = "GitHub";
version = "1.27.6094";
sha256 = "1h1mpf9ylsp6r4xsa1n97sapka92hr4ncjdwx6zs580h7lnzpkyz";
}
{
name = "vscode-test-explorer";
publisher = "hbenl";
version = "2.21.1";
sha256 = "022lnkq278ic0h9ggpqcwb3x3ivpcqjimhgirixznq0zvwyrwz3w";
}
{
name = "discord-vscode";
publisher = "icrawl";
version = "5.8.0";
sha256 = "0r9n2g5rif4y2619wccjqh3pn9rljb3yhblz09pdksmfi2ifakr1";
}
{
name = "better-cpp-syntax";
publisher = "jeff-hykin";
version = "1.15.14";
sha256 = "12h9r9zfpwj6752q1cgd1xinf3xbf6d861gzzhd5wi33g10whafm";
}
{
name = "nix-ide";
publisher = "jnoortheen";
version = "0.1.20";
sha256 = "16mmivdssjky11gmih7zp99d41m09r0ii43n17d4i6xwivagi9a3";
}
{
name = "rust-doc-viewer";
publisher = "JScearcy";
version = "2.0.1";
sha256 = "12vrn40cfm789qzsrjfy96ilfxzbdbmsr2h0ghz8spaw37fqqmbd";
}
{
name = "python";
publisher = "ms-python";
version = "2022.7.11591004";
sha256 = "1pfmvg93z3i6rmqfb4dkgswkjj1y8px36jwfkdpkzykrzdhv0l9b";
}
{
name = "remote-ssh";
publisher = "ms-vscode-remote";
version = "0.81.2022060215";
sha256 = "1i5n669mpbsla6bd0q4h1zmv1zvp93sdpjmrh01098wps0d22ir4";
}
{
name = "cmake-tools";
publisher = "ms-vscode";
version = "1.11.23";
sha256 = "1ql2qcm8jsisxwdybhab7pi9m8ss1dkk7kimw96jr7njxhhh1xnc";
}
{
name = "cpptools";
publisher = "ms-vscode";
version = "1.10.4";
sha256 = "sha256-lLgIU6iccRRiuu8Q/XvAv7W4tiCo86vUtpnhd7yteWs=";
}
{
name = "cpptools-themes";
publisher = "ms-vscode";
version = "1.0.0";
sha256 = "0nds0bx9zsnfgfqgpzlbd79wwnjnhsivf0qbnbiakhj2z8c0niqk";
}
{
name = "test-adapter-converter";
publisher = "ms-vscode";
version = "0.1.6";
sha256 = "0pj4ln8g8dzri766h9grdvhknz2mdzwv0lmzkpy7l9w9xx8jsbsh";
}
{
name = "veriloghdl";
publisher = "mshr-h";
version = "1.5.3";
sha256 = "1har7q0flqnx5q74nj3gn8l80aibmnn4xyscddbim5i5yqdx45g0";
}
{
name = "clang-tidy";
publisher = "notskm";
version = "0.5.1";
sha256 = "0z44hbrbzlhxbzf1j55xpl5fb7gic9avvcz4dvljrwz4qqdjzq4x";
}
{
name = "cargo";
publisher = "panicbit";
version = "0.2.3";
sha256 = "0idcbri4kpva0yxni0ql6l14knc3h6izxza5d49jidrh9xj0njh7";
}
{
name = "material-icon-theme";
publisher = "PKief";
version = "4.18.0";
sha256 = "18qxxpn5j3gcxhqf4rih123bbvcvngc6fribvhcqkl691drwhkmg";
}
{
name = "vscode-yaml";
publisher = "redhat";
version = "1.7.0";
sha256 = "1bbjpaypp0mq5akww5f0pkpq01j0xhhvkfr44f4lb2rdhr5nmnvc";
}
{
name = "LiveServer";
publisher = "ritwickdey";
version = "5.7.5";
sha256 = "0afjp8jr1s0f3ag0q8kw5d8cyd5fh6vzkfx2wdqq4pihm7ivp9xc";
}
{
name = "scala";
publisher = "scala-lang";
version = "0.5.5";
sha256 = "1gqgamm97sq09za8iyb06jf7hpqa2mlkycbx6zpqwvlwd3a92qr1";
}
{
name = "crates";
publisher = "serayuzgur";
version = "0.5.10";
sha256 = "1dbhd6xbawbnf9p090lpmn8i5gg1f7y8xk2whc9zhg4432kdv3vd";
}
{
name = "signageos-vscode-sops";
publisher = "signageos";
version = "0.5.0";
sha256 = "0a1kz1vypilbabzl1jqf2hcksvp7czshym5n594mj84w3bv6p354";
}
{
name = "vscode-rust-test-adapter";
publisher = "Swellaby";
version = "0.11.0";
sha256 = "111vhl71zzh4il1kh21l49alwlllzcvmdbsxyvk9bq3r24hxq1r2";
}
{
name = "even-better-toml";
publisher = "tamasfe";
version = "0.14.2";
sha256 = "17djwa2bnjfga21nvyz8wwmgnjllr4a7nvrsqvzm02hzlpwaskcl";
}
{
name = "cmake";
publisher = "twxs";
version = "0.0.17";
sha256 = "11hzjd0gxkq37689rrr2aszxng5l9fwpgs9nnglq3zhfa1msyn08";
}
{
name = "markdown-all-in-one";
publisher = "yzhang";
version = "3.4.3";
sha256 = "0z0sdb5vmx1waln5k9fk6s6lj1pzpcm3hwm4xc47jz62iq8930m3";
}
];
}