From 34bba528b3291ab04654348d424fbd7309a6b62d Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Mon, 2 Dec 2024 00:52:41 +0100 Subject: [PATCH] Added JS language support --- modules/users/modules/language/js.nix | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 modules/users/modules/language/js.nix diff --git a/modules/users/modules/language/js.nix b/modules/users/modules/language/js.nix new file mode 100644 index 0000000..0905979 --- /dev/null +++ b/modules/users/modules/language/js.nix @@ -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 = { }; + }; +}