init: vscode .#editor

This commit is contained in:
Qubasa
2024-05-27 13:52:54 +02:00
parent fdacfb8ecf
commit 2bd8b144b9
4 changed files with 66 additions and 0 deletions

21
pkgs/editor/settings.json Normal file
View File

@@ -0,0 +1,21 @@
{
"security.workspace.trust.enabled": false,
"nix.enableLanguageServer": true,
"nix.serverPath": "nixd",
"nix.formatterPath": "nixpkgs-fmt",
"nix.serverSettings": {
"nixd": {
"formatting": {
"command": "nixpkgs-fmt"
},
"options": {
"nixos": {
"expr": "(builtins.getFlake \"github:nixos/nixpkgs\").nixosConfigurations.<name>.options"
},
"home-manager": {
"expr": "(builtins.getFlake \"github:nix-community/home-manager\").homeConfigurations.<name>.options"
}
}
}
}
}