diff --git a/modules/programs/vscode.nix b/modules/programs/vscode.nix index 5ea6be8b4..dc4278d4f 100644 --- a/modules/programs/vscode.nix +++ b/modules/programs/vscode.nix @@ -48,6 +48,9 @@ let // optionalAttrs (!cfg.enableUpdateCheck) { "update.mode" = "none"; } // optionalAttrs (!cfg.enableExtensionUpdateCheck) { "extensions.autoCheckUpdates" = false; + } // optionalAttrs (!cfg.enableExtensionUpdate) { + "extensions.autoUpdate" = false; + "extensions.autoCheckUpdates" = false; }; in { imports = [ @@ -80,6 +83,15 @@ in { ''; }; + enableExtensionUpdate = mkOption { + type = types.bool; + default = true; + description = '' + Whether to enable automatic extension updates. + Disabling this also disables update checks. + ''; + }; + enableExtensionUpdateCheck = mkOption { type = types.bool; default = true;