32 lines
883 B
Nix
32 lines
883 B
Nix
{
|
|
config,
|
|
flakePath,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
|
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
|
in {
|
|
programs.vscode = {
|
|
enable = true;
|
|
extensions = with pkgs.vscode-extensions; [
|
|
pkgs.nur.repos.nekowinston.vscode-extensions.ms-kubernetes-tools.vscode-kubernetes-tools
|
|
pkief.material-icon-theme
|
|
redhat.vscode-yaml
|
|
valentjn.vscode-ltex
|
|
vscodevim.vim
|
|
];
|
|
mutableExtensionsDir = true;
|
|
};
|
|
home.file = {
|
|
"${config.xdg.configHome}/Code/User/settings.json" = {
|
|
enable = isLinux;
|
|
source = config.lib.file.mkOutOfStoreSymlink "${flakePath}/modules/vscode/settings.json";
|
|
};
|
|
"Library/Application Support/Code/User/settings.json" = {
|
|
enable = isDarwin;
|
|
source = config.lib.file.mkOutOfStoreSymlink "${flakePath}/modules/vscode/settings.json";
|
|
};
|
|
};
|
|
}
|