nixos/modules/dev/editors/vscode/default.nix

32 lines
550 B
Nix
Raw Normal View History

2023-07-31 17:15:24 +04:00
{
2023-08-06 21:51:09 +04:00
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.dev.editors.vscode;
in {
2023-08-06 21:54:37 +04:00
imports = [
./fhs.nix
];
2023-07-31 17:15:24 +04:00
options.modules.dev.editors.vscode = {
enable = mkEnableOption false;
};
2023-08-06 21:51:09 +04:00
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
(vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions; [
2023-08-10 19:01:14 +04:00
mkhl.direnv
vscodevim.vim
ms-python.vscode-pylance
ms-vscode.cmake-tools
2023-08-06 21:51:09 +04:00
];
})
];
};
2023-07-31 17:15:24 +04:00
}