mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
tests: modify vscode tests
Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
This commit is contained in:
parent
dfb6f04bb5
commit
355e80d420
4 changed files with 32 additions and 18 deletions
|
@ -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 = ''
|
||||||
|
|
|
@ -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 = ''
|
||||||
|
|
|
@ -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 = ''
|
||||||
|
|
|
@ -17,10 +17,15 @@ let
|
||||||
in {
|
in {
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.writeScriptBin "vscode" "" // { pname = "vscode"; };
|
package = pkgs.writeScriptBin "vscode" "" // {
|
||||||
|
pname = "vscode";
|
||||||
|
version = "1.75.0";
|
||||||
|
};
|
||||||
|
profiles.default = {
|
||||||
enableUpdateCheck = false;
|
enableUpdateCheck = false;
|
||||||
enableExtensionUpdateCheck = false;
|
enableExtensionUpdateCheck = false;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileExists "home-files/${settingsPath}"
|
assertFileExists "home-files/${settingsPath}"
|
||||||
|
|
Loading…
Reference in a new issue