Remove global github copilot

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-01-12 11:47:34 +00:00
parent 253600e0b6
commit fca554dbd4
3 changed files with 20 additions and 5 deletions

View File

@@ -41,8 +41,6 @@ in
mhutchie.git-graph
ms-azuretools.vscode-docker
ms-vsliveshare.vsliveshare
github.copilot
github.copilot-chat
naumovs.color-highlight
signageos.signageos-vscode-sops
];
@@ -91,9 +89,6 @@ in
"git.ignoreRebaseWarning" = true;
"git.openRepositoryInParentFolders" = "always";
"git.path" = lib.meta.getExe pkgs.git;
"github.copilot.enable" = {
"*" = true;
};
"mergeEditor.diffAlgorithm" = "advanced";
"security.workspace.trust.enabled" = false;
"telemetry.telemetryLevel" = "off";

View File

@@ -0,0 +1,19 @@
{
user ? throw "user argument is required",
home ? throw "home argument is required",
}:
{ pkgs, ... }:
{
home-manager.users.${user}.programs.vscode = {
extensions = with pkgs.vscode-extensions; [
github.copilot
github.copilot-chat
];
userSettings."github.copilot.enable" = {
"*" = true;
"plaintext" = true;
"markdown" = true;
};
};
}

View File

@@ -75,6 +75,7 @@ in
(import ./configs/console/snyk { inherit user home; })
(import ./configs/gui/obsidian { inherit user home; })
(import ./configs/gui/vscode { inherit user home; })
# Private Imports
(import ./configs/console/jsonify { inherit user home; })