sparsemap/.idx/dev.nix

102 lines
2.6 KiB
Nix
Raw Normal View History

2024-05-03 20:32:14 +00:00
# To learn more about how to use Nix to configure your environment
# see: https://developers.google.com/idx/guides/customize-idx-env
{ pkgs, ... }: {
# Which nixpkgs channel to use.
channel = "stable-23.11"; # or "unstable"
# Use https://search.nixos.org/packages to find packages
packages = with pkgs; [
act
autoconf
clang
2024-05-03 20:56:14 +00:00
clang-tools
2024-05-03 20:32:14 +00:00
ed
2024-05-03 22:14:11 +00:00
fira-code-nerdfont
2024-05-03 20:32:14 +00:00
gcc
gdb
gettext
2024-05-03 22:14:11 +00:00
glibc.out
glibc.static
gnumake
2024-05-03 20:32:14 +00:00
graphviz-nox
2024-05-03 22:14:11 +00:00
libbacktrace
2024-05-03 20:32:14 +00:00
libtool
2024-05-03 20:47:41 +00:00
lldb
2024-05-03 20:32:14 +00:00
m4
2024-05-03 20:47:41 +00:00
neovim
2024-05-04 20:23:52 +00:00
openssh
2024-05-03 20:32:14 +00:00
perl
pkg-config
python3
ripgrep
# pkgs.python311
# pkgs.python311Packages.pip
];
# Sets environment variables in the workspace
2024-05-04 20:23:52 +00:00
env = {
GIT_SSH_COMMAND="ssh -i ~/.ssh/id_ed25519 -F /dev/null";
};
2024-05-03 20:32:14 +00:00
idx = {
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
extensions = [
"coolbear.systemd-unit-file"
"dotjoshjohnson.xml"
"editorconfig.editorconfig"
"esbenp.prettier-vscode"
"golang.go"
"mads-hartmann.bash-ide-vscode"
"ms-python.python"
"ms-python.vscode-pylance"
2024-05-03 22:14:11 +00:00
"ms-vscode.clangd"
2024-05-03 20:32:14 +00:00
"ms-vscode.cmake-tools"
"ms-vscode.cpptools"
"ms-vscode.cpptools-extension-pack"
"ms-vscode.makefile-tools"
"ms-vsliveshare.vsliveshare"
2024-05-03 22:14:11 +00:00
"mspython.debugpy"
2024-05-03 20:32:14 +00:00
"redhat.vscode-yaml"
2024-05-03 22:14:11 +00:00
"rogalmic.bash-debug"
2024-05-03 20:32:14 +00:00
"ryu1kn.partial-diff"
"scala-lang.scala"
"scalameta.metals"
"streetsidesoftware.code-spell-checker"
"timonwong.shellcheck"
2024-05-03 22:14:11 +00:00
"twxs.cmake"
"vadimcn.vscode-lldb"
2024-05-03 20:32:14 +00:00
"vscode-icons-team.vscode-icons"
2024-05-03 22:14:11 +00:00
"vscodevim.vim"
2024-05-03 20:32:14 +00:00
"yzhang.markdown-all-in-one"
"znck.grammarly"
2024-05-10 15:32:37 +00:00
#"asvetliakov.vscode-neovim"
2024-05-03 22:14:11 +00:00
#"jnoortheen.nix-ide"
2024-05-03 20:32:14 +00:00
];
# Enable previews
previews = {
enable = true;
previews = {
# web = {
# # Example: run "npm run dev" with PORT set to IDX's defined port for previews,
# # and show it in IDX's web preview panel
# command = ["npm" "run" "dev"];
# manager = "web";
# env = {
# # Environment variables to set for your server
# PORT = "$PORT";
# };
# };
};
};
# Workspace lifecycle hooks
workspace = {
# Runs when a workspace is first created
onCreate = {
# Example: install JS dependencies from NPM
# npm-install = 'npm install';
};
onStart = {
# Example: start a background task to watch and re-build backend code
# watch-backend = "npm run watch-backend";
};
};
};
}