oizys/modules/langs/node.nix

15 lines
278 B
Nix
Raw Normal View History

2024-01-23 15:36:52 -06:00
{config, lib,pkgs,...}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.languages.node;
in
{
options.languages.node.enable = mkEnableOption "node";
config = mkIf cfg.enable {
2024-01-23 11:51:13 -06:00
environment.systemPackages = with pkgs; [
2024-01-23 15:36:52 -06:00
nodejs
2024-01-23 11:51:13 -06:00
nodePackages.pnpm
];
2024-01-23 15:36:52 -06:00
};
2024-01-23 11:51:13 -06:00
}