t14_legacy_config/home/apps/editors/vscode/default.nix

20 lines
487 B
Nix
Raw Normal View History

2022-11-30 04:29:21 +01:00
{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 {
2022-11-30 04:47:43 +01:00
home.packages = [ pkgs.rust-analyzer ];
2022-11-30 04:29:21 +01:00
programs.vscode = {
enable = true;
package = pkgs.vscodium;
mutableExtensionsDir = false;
extensions = attrValues (pkgs.callPackage ./extensions.nix {}).extensions;
2022-11-30 04:47:43 +01:00
userSettings = import ./settings.nix;
2022-11-30 04:29:21 +01:00
};
};
}