nixos-config/profiles/applications/vscodium/default.nix

52 lines
1.6 KiB
Nix
Raw Normal View History

2022-05-30 14:12:15 +04:00
{ config, pkgs, inputs, ... }: {
defaultApplications.editor = {
cmd =
"${config.home-manager.users.balsoft.programs.vscode.package}/bin/codium";
desktop = "codium";
};
home-manager.users.balsoft = {
programs.vscode = {
enable = true;
package = pkgs.vscodium;
mutableExtensionsDir = false;
extensions = with pkgs.vscode-extensions; [
vscodevim.vim
kahole.magit
(inputs.direnv-vscode.packages.${pkgs.system}.vsix.overrideAttrs (_: {
buildPhase = "yarn run build";
installPhase =
"mkdir -p $out/share/vscode/extensions/direnv.direnv-vscode; cp -R * $out/share/vscode/extensions/direnv.direnv-vscode";
}))
(pkgs.callPackage ./theme.nix { } config.themes.colors)
matklad.rust-analyzer
2022-05-30 15:25:46 +04:00
ocamllabs.ocaml-platform
2022-05-30 14:12:15 +04:00
redhat.vscode-yaml
bbenoist.nix
brettm12345.nixfmt-vscode
dhall.dhall-lang
hashicorp.terraform
timonwong.shellcheck
];
userSettings = {
2022-05-30 15:39:23 +04:00
"update.mode" = "none";
2022-05-30 14:12:15 +04:00
"[nix]"."editor.tabSize" = 2;
"workbench.colorTheme" = "Balsoft's generated theme";
2022-05-30 15:25:46 +04:00
"vim.useCtrlKeys" = false;
2022-05-30 15:37:42 +04:00
"terminal.integrated.profiles.linux".bash.path =
"/run/current-system/sw/bin/bash";
"terminal.integrated.defaultProfile.linux" = "bash";
"editor.fontFamily" = "IBM Plex Mono";
2022-05-30 14:12:15 +04:00
};
2022-05-30 15:25:46 +04:00
keybindings = [{
key = "ctrl+shift+r";
command = "workbench.action.tasks.runTask";
when = "textInputFocus";
}];
2022-05-30 14:12:15 +04:00
};
};
}