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

20 lines
487 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 = [ pkgs.rust-analyzer ];
programs.vscode = {
enable = true;
package = pkgs.vscodium;
mutableExtensionsDir = false;
extensions = attrValues (pkgs.callPackage ./extensions.nix {}).extensions;
userSettings = import ./settings.nix;
};
};
}