mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 03:32:08 +01:00
28 lines
369 B
Nix
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
|
|
];
|
|
};
|
|
};
|
|
}
|