2024-10-26 18:33:47 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
2024-10-27 11:23:20 +00:00
|
|
|
config,
|
2024-10-26 18:33:47 +00:00
|
|
|
...
|
2024-10-27 11:23:20 +00:00
|
|
|
}: let
|
|
|
|
cfg = config.pim.vscode;
|
|
|
|
in {
|
|
|
|
options.pim.vscode.enable = lib.mkEnableOption "vscode";
|
2024-10-26 18:24:13 +00:00
|
|
|
|
2024-10-27 11:23:20 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.vscode = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.vscodium;
|
|
|
|
extensions = with pkgs.vscode-extensions; [
|
|
|
|
vscodevim.vim
|
|
|
|
marp-team.marp-vscode
|
|
|
|
jnoortheen.nix-ide
|
|
|
|
mkhl.direnv
|
|
|
|
];
|
|
|
|
|
|
|
|
userSettings = {
|
|
|
|
"nix.enableLanguageServer" = true;
|
|
|
|
"nix.serverPath" = lib.getExe pkgs.nil;
|
|
|
|
"terminal.integrated.defaultProfile.linux" = "fish";
|
|
|
|
"explorer.confirmDragAndDrop" = false;
|
|
|
|
"explorer.confirmPasteNative" = false;
|
|
|
|
"explorer.confirmDelete" = false;
|
|
|
|
};
|
2024-10-26 18:24:13 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|