feat: add 'nodejs' module (and use on 'work' host)
This commit is contained in:
@@ -9,11 +9,9 @@ with pkgs;
|
|||||||
htop
|
htop
|
||||||
jq
|
jq
|
||||||
nmap
|
nmap
|
||||||
nodejs_24
|
|
||||||
nvimpager
|
nvimpager
|
||||||
parallel
|
parallel
|
||||||
pass
|
pass
|
||||||
pnpm
|
|
||||||
ripgrep
|
ripgrep
|
||||||
silver-searcher
|
silver-searcher
|
||||||
sops
|
sops
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ in
|
|||||||
../../modules/browser
|
../../modules/browser
|
||||||
../../modules/shell
|
../../modules/shell
|
||||||
../../modules/music
|
../../modules/music
|
||||||
|
../../modules/nodejs.nix
|
||||||
../../modules/taskwarrior.nix
|
../../modules/taskwarrior.nix
|
||||||
../../modules/bruno.nix
|
../../modules/bruno.nix
|
||||||
../../modules/vscode.nix
|
../../modules/vscode.nix
|
||||||
|
|||||||
26
home/modules/nodejs.nix
Normal file
26
home/modules/nodejs.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user