nixos-config/user/vscode/default.nix
2024-06-13 12:49:57 -03:00

20 lines
859 B
Nix

{ pkgs, config, ... }:
{
programs.vscode = {
enable = true;
package = pkgs.vscodium-fhs;
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
github.github-vscode-theme
rust-lang.rust-analyzer
];
};
home.file = {
"${config.home.homeDirectory}/.config/VSCodium/User/keybindings.json".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/projects/nixos-config/user/vscode/keybindings.json";
"${config.home.homeDirectory}/.config/VSCodium/User/settings.json".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/projects/nixos-config/user/vscode/settings.json";
"${config.home.homeDirectory}/.config/VSCodium/product.json".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/projects/nixos-config/user/vscode/product.json";
};
}