From 82b429b22134233637bdeb489d92161854235ecc Mon Sep 17 00:00:00 2001 From: jasmine Date: Fri, 14 Nov 2025 12:33:56 +0800 Subject: [PATCH] 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. --- nix/modules/template.nix | 2 +- templates/nextjs/flake.nix | 2 +- templates/vanilla/flake.nix | 2 +- templates/vanilla/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nix/modules/template.nix b/nix/modules/template.nix index c7373dd..9e91bf4 100644 --- a/nix/modules/template.nix +++ b/nix/modules/template.nix @@ -15,7 +15,7 @@ in { }; om.templates = { - default = { + vanilla = { template = templates.default; params = [ { diff --git a/templates/nextjs/flake.nix b/templates/nextjs/flake.nix index 3185f24..a307145 100644 --- a/templates/nextjs/flake.nix +++ b/templates/nextjs/flake.nix @@ -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 = { nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; diff --git a/templates/vanilla/flake.nix b/templates/vanilla/flake.nix index 3185f24..9b9385e 100644 --- a/templates/vanilla/flake.nix +++ b/templates/vanilla/flake.nix @@ -1,5 +1,5 @@ { - description = "Nix templates for JavaScript projects, powered by Bun"; + description = "Vanilla JavaScript project with Vite, Bun, and Nix"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; diff --git a/templates/vanilla/package.json b/templates/vanilla/package.json index 9cf1dc5..50f912c 100644 --- a/templates/vanilla/package.json +++ b/templates/vanilla/package.json @@ -1,5 +1,5 @@ { - "name": "javascript-template", + "name": "{{package-name}}", "version": "1.0.0", "type": "module", "scripts": {