add some vscode plugins

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-09 15:01:22 +01:00
parent 9230fecb98
commit c524dcaa0f
2 changed files with 14 additions and 1 deletions

View file

@ -203,7 +203,9 @@
age age
sops sops
ssh-to-age ssh-to-age
nixfmt-rfc-style
]; ];
}; };
formatter.x86_64-linux = (pkgsFor "x86_64-linux").nixfmt-rfc-style;
}; };
} }

View file

@ -1,4 +1,4 @@
{vscode-server, ...}: { {vscode-server, pkgs, ...}: {
imports = [ imports = [
"${vscode-server}/modules/vscode-server/home.nix" "${vscode-server}/modules/vscode-server/home.nix"
]; ];
@ -7,6 +7,17 @@
enableExtensionUpdateCheck = false; enableExtensionUpdateCheck = false;
enableUpdateCheck = false; enableUpdateCheck = false;
mutableExtensionsDir = 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; services.vscode-server.enable = true;
} }