nix-community / nix-vscode-extensions

Nix expressions for VSCode and OpenVSX extensions [maintainers: @deemp, @AmeerTaweel]
MIT License
206 stars 11 forks source link

Tweak User Settings #39

Closed heywoodlh closed 1 year ago

heywoodlh commented 1 year ago

Is there any way built into the flake to add configuration settings for VSCode? I tried to unsuccessfully find parameters for it.

These are the current config options that I use in my Home Manager VSCode config: https://github.com/heywoodlh/nixos-configs/blob/master/roles/home-manager/desktop.nix#L27-L58

I'd love to be able to use those types of configs with this flake.

I suspect it shouldn't be too difficult to add a config file, but before trying to come up with a solution myself, I thought I would ask, as it seems like something that could be already supported.

(Also, thanks to all involved for such a great flake!)

deemp commented 1 year ago

This flake focuses on providing extensions.

If you meant settings.json, I usually generate them for each project.

See https://github.com/nix-community/nix-vscode-extensions/blob/0d4b7e78fd260e1665e0b17f8382f7d704385f97/nix-dev/flake.nix#L46

It comes from https://github.com/deemp/flakes/blob/53d1b8858665e7b259ec57166cdeaa16b03a5e46/codium/flake.nix#L42

deemp commented 1 year ago

I assume that was a solution. Feel free to reopen this issue if no