oizys/modules/langs/node.nix
2024-01-23 19:13:42 -06:00

17 lines
296 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.languages.node;
in {
options.languages.node.enable = mkEnableOption "node";
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
nodejs
nodePackages.pnpm
];
};
}