Skip to content

About

Flake templates

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

nix-templates

Caution

このリポジトリのルートにあるファイル(flake.nix, .github/workflows/など)は、 テンプレートを管理するためのファイルです。 これ自体はテンプレートではないので、 コピーしたり参考にしてはいけません。 実際のテンプレートはtemplates/ディレクトリ以下にあります。

Nix flake templates.

Templates

basic

treefmt, CI, devShellなどを含む基本的なNix flakeテンプレート。

nix flake init -t 'github:ncaq/nix-templates#basic'

github-action

GitHub Actionプロジェクト向けのテンプレート。

composite actionのスケルトンなどを含みます。

nix flake init -t 'github:ncaq/nix-templates#github-action'

haskell-himari

Haskellプロジェクト向けテンプレート。

himariプレリュードを使用します。

Haskellビルドインフラでの開発環境のセットアップが含まれます。

nix flake init -t 'github:ncaq/nix-templates#haskell-himari'

haskell-nix-himari

Haskellプロジェクト向けテンプレート。

himariプレリュードを使用します。

環境構築にhaskell.nixを使用します。

haskell-himariはnixpkgsのHaskellパッケージセットを使うのに対し、 こちらはhaskell.nixを使うため重量級ですが、 Cabalソルバーによる柔軟な依存解決などの恩恵を受けられます。

nix flake init -t 'github:ncaq/nix-templates#haskell-nix-himari'

typescript

TypeScriptプロジェクト向けの基本テンプレート。

npmベースの開発環境が含まれます。

nix flake init -t 'github:ncaq/nix-templates#typescript'

Development

テンプレートファイルの同期

templates/以下の各テンプレートには、 ルートリポジトリと共通のファイル(.editorconfig, .github/workflows/kyosei.ymlなど)が含まれています。 これらはルートのファイルのコピーであり、 checks.template-syncで差分がないことを検証しています。

共通ファイルを更新した場合は、 以下のコマンドでテンプレートに反映してください。

nix run '.#sync-template-files'

テンプレート固有のファイル(flake.nix, README.mdなど)は同期対象外です。

About

Flake templates

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages