oizys/modules/languages/node.nix

16 lines
241 B
Nix

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