chore: initialize project template

This commit is contained in:
♥ Minnie ♥ 2025-02-20 13:43:07 +08:00
commit 3857b5dfa3
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
15 changed files with 3728 additions and 0 deletions

22
flake.nix Normal file
View file

@ -0,0 +1,22 @@
{
description = "Nix template for Haskell projects";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
nixos-unified.url = "github:srid/nixos-unified";
haskell-flake.url = "github:srid/haskell-flake";
fourmolu-nix.url = "github:jedimahdi/fourmolu-nix";
git-hooks.url = "github:cachix/git-hooks.nix";
git-hooks.flake = false;
};
outputs = inputs:
# This will import ./nix/modules/flake/*.nix
# cf. https://nixos-unified.org/autowiring.html#flake-parts
#
# To write your own Nix, add or edit files in ./nix/modules/flake/
inputs.nixos-unified.lib.mkFlake
{ inherit inputs; root = ./.; };
}