nixos/modules/dev/editors/vscode/default.nix
2023-08-10 18:01:14 +03:00

31 lines
550 B
Nix

{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.dev.editors.vscode;
in {
imports = [
./fhs.nix
];
options.modules.dev.editors.vscode = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
(vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions; [
mkhl.direnv
vscodevim.vim
ms-python.vscode-pylance
ms-vscode.cmake-tools
];
})
];
};
}