add vscode task for building

This commit is contained in:
Andreas Schaafsma 2024-11-12 22:49:01 +01:00
parent cae95f99af
commit 3097ba6084

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

@ -0,0 +1,21 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "nixos-rebuild",
"command": "bash",
"args": [
"-c",
"sudo nixos-rebuild switch --flake ."
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}