diff --git a/.vscode/settings.json b/.vscode/settings.json index f872afc..bbaf731 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,4 +7,14 @@ "editor.guides.highlightActiveBracketPair": true, "files.trimTrailingWhitespace": true, "sops.defaults.ageKeyFile": "age.key", + "nix.enableLanguageServer": true, + "nix.serverPath": "/run/current-system/sw/bin/nil", + "nix.formatterPath": "/run/current-system/sw/bin/nixpkgs-fmt", + "nix.serverSettings": { + "nil": { + "formatting": { + "command": ["nixpkgs-fmt"] + } + } + }, } diff --git a/nixos/modules/nixos/editor/vscode.nix b/nixos/modules/nixos/editor/vscode.nix index c24c73d..d142b56 100644 --- a/nixos/modules/nixos/editor/vscode.nix +++ b/nixos/modules/nixos/editor/vscode.nix @@ -32,6 +32,8 @@ let "fill-labs.dependi" "rust-lang.rust-analyzer" "dustypomerleau.rust-syntax" + "mattheworford.hocon-tools" + "pgourlain.erlang" # "github.copilot-chat" ]; # Nixpkgs Extensions. These are updated whenver they get around to it.