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

34 lines
1 KiB
Nix
Raw Normal View History

2024-10-31 15:32:00 +04:00
{ outputs, options, config, lib, pkgs, ... }:
let cfg = config.modules.dev.editors.vscode;
2023-08-06 21:51:09 +04:00
in {
2024-10-31 15:32:00 +04:00
imports = [ ./fhs.nix ];
options.modules.dev.editors.vscode = { enable = lib.mkEnableOption false; };
2023-08-06 21:51:09 +04:00
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2024-10-31 15:32:00 +04:00
users.users.sako.packages = with pkgs;
[
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with vscode-extensions;
[
mkhl.direnv
ms-python.vscode-pylance
ms-vscode.cmake-tools
2024-10-31 17:03:24 +04:00
jnoortheen.nix-ide
2024-10-31 15:32:00 +04:00
ms-dotnettools.csharp
2024-10-31 15:49:35 +04:00
tuttieee.emacs-mcx
kahole.magit
2024-10-31 16:59:10 +04:00
zhuangtongfa.material-theme
rust-lang.rust-analyzer
2024-10-31 17:03:24 +04:00
pkief.material-icon-theme
2024-10-31 15:32:00 +04:00
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [{
2023-08-14 21:43:36 +04:00
name = "better-comments";
publisher = "aaron-bond";
version = "3.0.2";
sha256 = "hQmA8PWjf2Nd60v5EAuqqD8LIEu7slrNs8luc3ePgZc=";
2024-10-31 15:32:00 +04:00
}];
})
];
2023-08-06 21:51:09 +04:00
};
2023-07-31 17:15:24 +04:00
}