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

32 lines
982 B
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 16:59:10 +04:00
rust-lang.rust-analyzer
2024-12-22 21:46:47 +04:00
golang.go
2024-12-23 16:23:40 +04:00
leonardssh.vscord
2024-12-23 20:43:31 +04:00
ms-python.python
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
}