Clean up template configurations for initialized projects

Removed unnecessary packages and template metadata from initialized projects:
- Removed TypeScript from vanilla template (not used)
- Removed template.nix from both templates (only needed in repo, not projects)
- Updated flake.nix in templates to only import devshell.nix

Templates now provide minimal, focused development environments.
This commit is contained in:
♥ Minnie ♥ 2025-11-14 12:26:43 +08:00
parent 1413b1b10d
commit e907de4a37
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
5 changed files with 0 additions and 85 deletions

View file

@ -12,7 +12,6 @@
systems = import inputs.systems;
imports = [
./nix/modules/devshell.nix
./nix/modules/template.nix
];
};
}

View file

@ -1,41 +0,0 @@
{inputs, ...}: let
root = inputs.self;
in {
flake = rec {
templates = {
default = {
description = "Minimal JavaScript template with Vite and Bun";
path = "${root}/vanilla";
};
nextjs = {
description = "Next.js TypeScript template with App Router";
path = "${root}/nextjs";
};
};
om.templates = {
default = {
template = templates.default;
params = [
{
name = "package-name";
description = "Name of the JavaScript package";
placeholder = "my-project";
}
];
};
nextjs = {
template = templates.nextjs;
params = [
{
name = "package-name";
description = "Name of the Next.js project";
placeholder = "my-nextjs-app";
}
];
};
};
};
}

View file

@ -12,7 +12,6 @@
systems = import inputs.systems;
imports = [
./nix/modules/devshell.nix
./nix/modules/template.nix
];
};
}

View file

@ -22,7 +22,6 @@ in {
[
bun
nodejs
typescript
eslint
just
prettierd

View file

@ -1,41 +0,0 @@
{inputs, ...}: let
root = inputs.self;
in {
flake = rec {
templates = {
default = {
description = "Minimal JavaScript template with Vite and Bun";
path = "${root}/vanilla";
};
nextjs = {
description = "Next.js TypeScript template with App Router";
path = "${root}/nextjs";
};
};
om.templates = {
default = {
template = templates.default;
params = [
{
name = "package-name";
description = "Name of the JavaScript package";
placeholder = "my-project";
}
];
};
nextjs = {
template = templates.nextjs;
params = [
{
name = "package-name";
description = "Name of the Next.js project";
placeholder = "my-nextjs-app";
}
];
};
};
};
}