Caution
このリポジトリのルートにあるファイル(flake.nix, .github/workflows/など)は、
テンプレートを管理するためのファイルです。
これ自体はテンプレートではないので、
コピーしたり参考にしてはいけません。
実際のテンプレートはtemplates/ディレクトリ以下にあります。
Nix flake templates.
treefmt, CI, devShellなどを含む基本的なNix flakeテンプレート。
nix flake init -t 'github:ncaq/nix-templates#basic'GitHub Actionプロジェクト向けのテンプレート。 basicの内容に加え、composite action, VERSIONベースのリリースワークフローを含みます。
nix flake init -t 'github:ncaq/nix-templates#github-action'himariプレリュードを使用するHaskellプロジェクト向けテンプレート。 basicの内容に加え、cabal, fourmolu, hlint, Nix CIを含みます。
nix flake init -t 'github:ncaq/nix-templates#haskell-himari'TypeScriptプロジェクト向けの基本テンプレート。 basicの内容に加え、npm, vitest, ESLint, Prettierを含みます。
nix flake init -t 'github:ncaq/nix-templates#typescript'templates/以下の各テンプレートには、
ルートリポジトリと共通のファイル(.editorconfig, .github/actions/など)が含まれています。
これらはルートのファイルのコピーであり、
checks.template-syncで差分がないことを検証しています。
共通ファイルを更新した場合は、 以下のコマンドでテンプレートに反映してください。
nix run '.#sync-template-files'テンプレート固有のファイル(flake.nix, README.mdなど)は同期対象外です。