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プロジェクト向けのテンプレート。
composite actionのスケルトンなどを含みます。
nix flake init -t 'github:ncaq/nix-templates#github-action'Haskellプロジェクト向けテンプレート。
himariプレリュードを使用します。
Haskellビルドインフラでの開発環境のセットアップが含まれます。
nix flake init -t 'github:ncaq/nix-templates#haskell-himari'Haskellプロジェクト向けテンプレート。
himariプレリュードを使用します。
環境構築にhaskell.nixを使用します。
haskell-himariはnixpkgsのHaskellパッケージセットを使うのに対し、 こちらはhaskell.nixを使うため重量級ですが、 Cabalソルバーによる柔軟な依存解決などの恩恵を受けられます。
nix flake init -t 'github:ncaq/nix-templates#haskell-nix-himari'TypeScriptプロジェクト向けの基本テンプレート。
npmベースの開発環境が含まれます。
nix flake init -t 'github:ncaq/nix-templates#typescript'templates/以下の各テンプレートには、
ルートリポジトリと共通のファイル(.editorconfig, .github/workflows/kyosei.ymlなど)が含まれています。
これらはルートのファイルのコピーであり、
checks.template-syncで差分がないことを検証しています。
共通ファイルを更新した場合は、 以下のコマンドでテンプレートに反映してください。
nix run '.#sync-template-files'テンプレート固有のファイル(flake.nix, README.mdなど)は同期対象外です。