1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-23 03:32:08 +01:00
github.com-tboerger-nixos-c.../home/shared/programs/nodejs.nix
2024-01-30 14:00:26 +01:00

28 lines
369 B
Nix

{ pkgs, lib, config, options, ... }:
with lib;
let
cfg = config.profile.programs.nodejs;
in
{
options = {
profile = {
programs = {
nodejs = {
enable = mkEnableOption "Nodejs";
};
};
};
};
config = mkIf cfg.enable {
home = {
packages = with pkgs; [
nodejs_20
yarn
];
};
};
}