From bc8bcd8a251f99dd7b8173c183cfbe237f8dea44 Mon Sep 17 00:00:00 2001 From: Henrik Date: Wed, 5 Nov 2025 18:33:40 +0100 Subject: [PATCH] added a handfull of tasks for vscode --- .vscode/tasks.json | 78 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..32c5f4e --- /dev/null +++ b/.vscode/tasks.json @@ -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": [] + } + ] +} \ No newline at end of file