This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
init.author.name=Hektor Misplon
|
|
||||||
init.author.email=hektor.misplon@gmail.com
|
|
||||||
init.license=MIT
|
|
||||||
@@ -7,14 +7,12 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.nodejs;
|
cfg = config.nodejs;
|
||||||
|
email = "contact@hektormisplon.xyz";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nodejs = {
|
options.nodejs = {
|
||||||
enable = lib.mkEnableOption "Node.js";
|
enable = lib.mkEnableOption "Node.js";
|
||||||
package = lib.mkOption {
|
package = lib.mkPackageOption pkgs "nodejs_24" { };
|
||||||
type = lib.types.package;
|
|
||||||
default = pkgs.nodejs_24;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@@ -25,5 +23,17 @@ in
|
|||||||
biome
|
biome
|
||||||
tsx
|
tsx
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.npm = {
|
||||||
|
inherit (cfg) enable package;
|
||||||
|
settings = {
|
||||||
|
prefix = "${config.xdg.dataHome}/npm";
|
||||||
|
cache = "${config.xdg.cacheHome}/npm";
|
||||||
|
init-module = "${config.xdg.configHome}/npm/config/npm-init.js";
|
||||||
|
init-author-name = "Hektor Misplon";
|
||||||
|
init-author-email = email;
|
||||||
|
init-license = "MIT";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user