1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01: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 {
programs.vscode = {
enable = true;
defaultProfile.keybindings = bindings;
profiles = [{
name = "test";
keybindings = bindings;
}];
package = pkgs.writeScriptBin "vscode" "" // { pname = "vscode"; };
profiles = {
default.keybindings = bindings;
test.keybindings = bindings;
};
package = pkgs.writeScriptBin "vscode" "" // {
pname = "vscode";
version = "1.75.0";
};
};
nmt.script = ''

View file

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

View file

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

View file

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