t14_legacy_config/home/apps/editors/vscode/default.nix
2022-11-29 21:29:21 -06:00

20 lines
481 B
Nix

{config, lib, pkgs, ...} :
with lib;
let
cfg = config.local.apps.editors.vscode;
in
{
options.local.apps.editors.vscode.enable = mkEnableOption "VSCodium";
config = mkIf cfg.enable {
home.packages = [ rust-analyzer ];
programs.vscode = {
enable = true;
package = pkgs.vscodium;
mutableExtensionsDir = false;
extensions = attrValues (pkgs.callPackage ./extensions.nix {}).extensions;
userSettings = import ./settings.nix
};
};
}