Restructure templates to include Nix development environment

Moved template directories into templates/ subdirectory (templates/vanilla/
and templates/nextjs/) with complete Nix configuration in each. This ensures
initialized projects have the full development environment with Nix, Bun,
and all tooling out of the box.

Changes:
- Created templates/vanilla/ with flake.nix, nix/, .envrc, and all files
- Created templates/nextjs/ with flake.nix, nix/, .envrc, and all files
- Updated template paths in nix/modules/template.nix
This commit is contained in:
♥ Minnie ♥ 2025-11-14 11:56:46 +08:00
parent 304367cde5
commit 2b228ebd52
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
11 changed files with 367 additions and 3 deletions

View file

@ -9,13 +9,13 @@ in {
};
nextjs = {
description = "Next.js TypeScript template with App Router for Vercel";
description = "Next.js TypeScript template with App Router";
path = "${root}/templates/nextjs";
};
};
om.templates = {
javascript-vanilla = {
default = {
template = templates.default;
params = [
{
@ -26,7 +26,7 @@ in {
];
};
javascript-nextjs = {
nextjs = {
template = templates.nextjs;
params = [
{