added a handfull of tasks for vscode

This commit is contained in:
Henrik
2025-11-05 18:33:40 +01:00
parent c31f778ac2
commit bc8bcd8a25

78
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,78 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Nix Flake Check",
"type": "shell",
"command": "nix",
"args": [
"flake",
"check"
],
"group": {
"kind": "test",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "Build VM",
"type": "shell",
"command": "nixos-rebuild",
"args": [
"build-vm",
"--flake",
".#matrix"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "Run VM",
"type": "shell",
"command": "./result/bin/run-matrix-vm",
"group": "test",
"dependsOn": "Build VM",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": []
},
{
"label": "Clean VM",
"type": "shell",
"command": "rm",
"args": [
"-f",
"./matrix.qcow2"
],
"group": "test",
"dependsOn": "Build VM",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": []
}
]
}