I want a dev env for my hugo project. This dev env should provide me with vscodium and a bunch of extensions.
Below I pasted my flake which works but is missing prettier-plugin-go-template and I don’t know how to specify it. This plugin for the prettier extension would format go-template files.
I also don’t necessarily want to write my own dev env so if someone already wrote one for this specific task I’d be glad to adjust/use that.
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
with pkgs; {
devShells.default = mkShell {
buildInputs = [
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with vscode-extensions; [prettier-plugin-go-template
github.github-vscode-theme
vscodevim.vim
yzhang.markdown-all-in-one
esbenp.prettier-vscode # how to install plugins for this extension?
];
})
];
};
}
);
}