Fix template metadata and naming

- Changed omnix template name from "default" to "vanilla" for clarity
- Updated flake descriptions to describe project type, not template repo
- Added {{package-name}} variable to vanilla/package.json for substitution

Ensures initialized projects have correct metadata and users see "vanilla"
and "nextjs" as template options during initialization.
This commit is contained in:
♥ Minnie ♥ 2025-11-14 12:33:56 +08:00
parent e907de4a37
commit 82b429b221
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
4 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ in {
}; };
om.templates = { om.templates = {
default = { vanilla = {
template = templates.default; template = templates.default;
params = [ params = [
{ {

View file

@ -1,5 +1,5 @@
{ {
description = "Nix templates for JavaScript projects, powered by Bun"; description = "Next.js TypeScript project with App Router, Bun, and Nix";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";

View file

@ -1,5 +1,5 @@
{ {
description = "Nix templates for JavaScript projects, powered by Bun"; description = "Vanilla JavaScript project with Vite, Bun, and Nix";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";

View file

@ -1,5 +1,5 @@
{ {
"name": "javascript-template", "name": "{{package-name}}",
"version": "1.0.0", "version": "1.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {