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

42 lines
891 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,
...
}:
2024-08-01 16:24:09 +04:00
let
2023-08-06 21:51:09 +04:00
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 = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-07-31 17:15:24 +04:00
};
2023-08-06 21:51:09 +04:00
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-08-06 21:51:09 +04:00
users.users.sako.packages = with pkgs; [
(vscode-with-extensions.override {
2023-08-14 21:43:36 +04:00
vscodeExtensions = with vscode-extensions;
[
mkhl.direnv
vscodevim.vim
ms-python.vscode-pylance
ms-vscode.cmake-tools
ms-dotnettools.csharp
]
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "better-comments";
publisher = "aaron-bond";
version = "3.0.2";
sha256 = "hQmA8PWjf2Nd60v5EAuqqD8LIEu7slrNs8luc3ePgZc=";
}
];
2023-08-06 21:51:09 +04:00
})
];
};
2023-07-31 17:15:24 +04:00
}