nixos/modules/dev/javascript.nix
2024-08-01 16:24:09 +04:00

17 lines
337 B
Nix

{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.dev.javascript;
in
{
options.modules.dev.javascript = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
nodejs
yarn
nodePackages.typescript-language-server
];
};
}