Added JS language support

This commit is contained in:
Jan-Bulthuis 2024-12-02 00:52:41 +01:00
parent a91fb54e24
commit 34bba528b3
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.js;
in
{
options.modules.js = {
enable = mkEnableOption "js";
};
config = mkIf cfg.enable {
# Development packages
home.packages = with pkgs; [
nodejs
tailwindcss
];
# VSCode configuration
programs.vscode = {
extensions = with pkgs.vscode-extensions; [
bradlc.vscode-tailwindcss
];
userSettings = { };
};
# Neovim configuration
programs.nixvim = { };
};
}