30 lines
701 B
Nix
30 lines
701 B
Nix
{
|
|
inputs = {
|
|
devshell.inputs.nixpkgs.follows = "nixpkgs";
|
|
devshell.url = "github:numtide/devshell";
|
|
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
|
|
git-hooks-nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
git-hooks-nix.url = "github:cachix/git-hooks.nix";
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
imports = [
|
|
./nix/flake-modules/dev-shell.nix
|
|
./nix/flake-modules/git-hooks.nix
|
|
];
|
|
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
formatter = pkgs.nixfmt-rfc-style;
|
|
};
|
|
};
|
|
}
|