oizys/modules/langs/node.nix

18 lines
296 B
Nix
Raw Normal View History

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