oizys/modules/langs/node.nix
2024-01-25 12:23:32 -06:00

17 lines
282 B
Nix

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