vscode: don't install language servers if vscode is not installed

This commit is contained in:
Katherina Walshe-Grey 2024-08-02 12:01:00 +01:00
parent e1ae112e8a
commit 3f8e97366c

View file

@ -1,6 +1,8 @@
{ config, lib, pkgs, ... }:
{
let
inherit (lib) mkIf;
in {
programs.vscode = {
enableExtensionUpdateCheck = false;
enableUpdateCheck = false;
@ -41,9 +43,9 @@
};
# Language servers etc
home.packages = with pkgs; [
home.packages = mkIf config.programs.vscode.enable (with pkgs; [
gopls
nil
nixpkgs-fmt
];
]);
}