From ebda39966b4557f943eca550bbb9ad22a4f60f88 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 1 Jan 2025 16:16:50 -0600 Subject: [PATCH] setup nix ide --- .vscode/settings.json | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7f82aa5..8834eb0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,10 +1,35 @@ { - "editor.fontFamily": "FiraCode Nerd Font", + "editor.fontFamily": "CaskaydiaMono Nerd Font Mono", "editor.hover.delay": 1500, "editor.bracketPairColorization.enabled": true, "editor.guides.bracketPairs": true, "editor.guides.bracketPairsHorizontal": true, "editor.guides.highlightActiveBracketPair": true, "files.trimTrailingWhitespace": true, - "sops.defaults.ageKeyFile": "age.key" + "sops.defaults.ageKeyFile": "age.key", + "nix.enableLanguageServer": true, + "nix.serverPath": "/run/current-system/sw/bin/nil", + "nix.formatterPath": "/run/current-system/sw/bin/nixfmt", + "nix.serverSettings": { + "nil": { + "formatting": { + "command": ["nixfmt"] + }, + "diagnostics": { + "ignored": [], + "excludedFiles": [] + } + }, + "nix": { + "binary": "/run/current-system/sw/bin/nix", + "maxMemoryMB": null, + "flake": { + "autoEvalInputs": true, + "autoArchive": true, + "nixpkgsInputName": "nixpkgs" + } + } + }, + "sops.binPath": "/run/current-system/sw/bin/sops", + "editor.formatOnSave": true }