From c524dcaa0f4d9098fafcafb64bb4987cca855357 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 9 Nov 2024 15:01:22 +0100 Subject: [PATCH] add some vscode plugins --- flake.nix | 2 ++ programs/editors/vscode/default.nix | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 05419e9c..395f5850 100644 --- a/flake.nix +++ b/flake.nix @@ -203,7 +203,9 @@ age sops ssh-to-age + nixfmt-rfc-style ]; }; + formatter.x86_64-linux = (pkgsFor "x86_64-linux").nixfmt-rfc-style; }; } diff --git a/programs/editors/vscode/default.nix b/programs/editors/vscode/default.nix index 3dc9e6c2..a49b505b 100644 --- a/programs/editors/vscode/default.nix +++ b/programs/editors/vscode/default.nix @@ -1,4 +1,4 @@ -{vscode-server, ...}: { +{vscode-server, pkgs, ...}: { imports = [ "${vscode-server}/modules/vscode-server/home.nix" ]; @@ -7,6 +7,17 @@ enableExtensionUpdateCheck = false; enableUpdateCheck = false; mutableExtensionsDir = false; + extensions = with pkgs.vscode-extensions; [ + jnoortheen.nix-ide + mkhl.direnv + pkief.material-icon-theme + ]; + userSettings = { + "nix.enableLanguageServer" = true; + "nix.formatterPath" = "${pkgs.nixfmt-rfc-style}/bin/nixfmt"; + "nix.serverPath" = "${pkgs.nil}/bin/nil"; + "workbench.iconTheme" = "material-icon-theme"; + }; }; services.vscode-server.enable = true; }