1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

tests: modify vscode tests

Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
This commit is contained in:
Reputable2722 2024-07-20 20:13:11 +05:30
parent dfb6f04bb5
commit 355e80d420
No known key found for this signature in database
4 changed files with 32 additions and 18 deletions

View file

@ -75,12 +75,14 @@ let
in { in {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
defaultProfile.keybindings = bindings; profiles = {
profiles = [{ default.keybindings = bindings;
name = "test"; test.keybindings = bindings;
keybindings = bindings; };
}]; package = pkgs.writeScriptBin "vscode" "" // {
package = pkgs.writeScriptBin "vscode" "" // { pname = "vscode"; }; pname = "vscode";
version = "1.75.0";
};
}; };
nmt.script = '' nmt.script = ''

View file

@ -66,9 +66,14 @@ let
in { in {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = pkgs.writeScriptBin "vscode" "" // { pname = "vscode"; }; package = pkgs.writeScriptBin "vscode" "" // {
defaultProfile = snippets; pname = "vscode";
profiles = [ ({ name = "test"; } // snippets) ]; version = "1.75.0";
};
profiles = {
default = snippets;
test = snippets;
};
}; };
nmt.script = '' nmt.script = ''

View file

@ -37,12 +37,14 @@ let
in { in {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = pkgs.writeScriptBin "vscode" "" // { pname = "vscode"; }; package = pkgs.writeScriptBin "vscode" "" // {
defaultProfile.userTasks = tasks; pname = "vscode";
profiles = [{ version = "1.75.0";
name = "test"; };
userTasks = tasks; profiles = {
}]; default.userTasks = tasks;
test.userTasks = tasks;
};
}; };
nmt.script = '' nmt.script = ''

View file

@ -17,9 +17,14 @@ let
in { in {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = pkgs.writeScriptBin "vscode" "" // { pname = "vscode"; }; package = pkgs.writeScriptBin "vscode" "" // {
enableUpdateCheck = false; pname = "vscode";
enableExtensionUpdateCheck = false; version = "1.75.0";
};
profiles.default = {
enableUpdateCheck = false;
enableExtensionUpdateCheck = false;
};
}; };
nmt.script = '' nmt.script = ''