41 lines
893 B
Nix
41 lines
893 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
|
|
ms-dotnettools.csharp
|
|
]
|
|
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
|
{
|
|
name = "better-comments";
|
|
publisher = "aaron-bond";
|
|
version = "3.0.2";
|
|
sha256 = "hQmA8PWjf2Nd60v5EAuqqD8LIEu7slrNs8luc3ePgZc=";
|
|
}
|
|
];
|
|
})
|
|
];
|
|
};
|
|
}
|