vscode nix settings

This commit is contained in:
nora 2023-09-18 13:55:59 +02:00
parent 966a4c647b
commit d0d9400502
3 changed files with 10 additions and 2 deletions

View file

@ -6,7 +6,7 @@
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nur.url = github:nix-community/NUR;
nur.url = "github:nix-community/NUR";
# Home manager
home-manager.url = "github:nix-community/home-manager";

View file

@ -48,7 +48,6 @@ in
inferno
jetbrains.idea-ultimate
linuxKernel.packages.linux_6_1.perf
nixpkgs-fmt
obs-studio
obsidian
postman

View file

@ -4,6 +4,15 @@
package = pkgs.vscodium;
enableUpdateCheck = false;
mutableExtensionsDir = false;
settings = {
"nix.enableLanguageServer" = true;
"nix.serverPath" = "${pkgs.nil}/bin/nil";
"nix.serverSettings" = {
formatting = {
command = ["${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt"];
};
};
};
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
usernamehw.errorlens