20 lines
481 B
Nix
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
|
||
|
};
|
||
|
};
|
||
|
}
|