moved all extensions other then spell check into their own modules
This commit is contained in:
parent
0fd54a5494
commit
b5cfb5ec77
8 changed files with 187 additions and 29 deletions
27
modules/home-manager-modules/programs/vscode/nearley.nix
Normal file
27
modules/home-manager-modules/programs/vscode/nearley.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
pkgsRepositories = pkgs.nix-vscode-extensions.forVSCodeVersion config.programs.vscode.package.version;
|
||||
pkgsRepository = pkgsRepositories.vscode-marketplace;
|
||||
in {
|
||||
options.programs.vscode.profiles = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.submodule ({config, ...}: {
|
||||
options = {
|
||||
extraExtensions.nearley = {
|
||||
enable = lib.mkEnableOption "should the nearley extension for vscode be enabled";
|
||||
extension = lib.mkPackageOption pkgsRepository "nearley" {
|
||||
default = ["karyfoundation" "nearley"];
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.extraExtensions.nearley.enable {
|
||||
extensions = [
|
||||
config.extraExtensions.nearley.extension
|
||||
];
|
||||
};
|
||||
}));
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue