made development into an option

added it to configuration
This commit is contained in:
2026-07-12 12:55:40 -05:00
parent 4f6c1e337d
commit ac862dfc1f
10 changed files with 200 additions and 87 deletions
+21 -12
View File
@@ -1,17 +1,26 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
bun
config,
lib,
pkgs,
...
}:
let
cfg = config.workstation.development.typescript;
in
{
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
bun
prettier
eslint
typescript-language-server
# TS tooling (optional but common)
typescript
nodePackages.typescript-language-server
nodePackages.eslint
nodePackages.prettier
];
# TS tooling (optional but common)
typescript
];
environment.variables = {
NODE_OPTIONS = "--max-old-space-size=4096";
environment.variables = {
NODE_OPTIONS = "--max-old-space-size=4096";
};
};
}