feat: add 'nodejs' module (and use on 'work' host)

This commit is contained in:
2026-03-11 21:25:32 +01:00
parent 9cbd0cc316
commit d06e8d975e
3 changed files with 27 additions and 2 deletions
-2
View File
@@ -9,11 +9,9 @@ with pkgs;
htop
jq
nmap
nodejs_24
nvimpager
parallel
pass
pnpm
ripgrep
silver-searcher
sops
+1
View File
@@ -30,6 +30,7 @@ in
../../modules/browser
../../modules/shell
../../modules/music
../../modules/nodejs.nix
../../modules/taskwarrior.nix
../../modules/bruno.nix
../../modules/vscode.nix
+26
View File
@@ -0,0 +1,26 @@
{
config,
lib,
pkgs,
...
}:
{
options.nodejs = {
enable = lib.mkEnableOption "nodejs (and related packages)";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.nodejs_24;
};
};
config = lib.mkIf config.nodejs.enable {
home.packages = with pkgs; [
config.nodejs.package
pnpm
yarn
biome
tsx
];
};
}