oliverdavies.uk/flake.nix

31 lines
701 B
Nix
Raw Normal View History

2025-04-16 18:18:17 +01:00
{
inputs = {
2025-06-23 00:35:28 +01:00
devshell.inputs.nixpkgs.follows = "nixpkgs";
devshell.url = "github:numtide/devshell";
2025-06-22 23:17:37 +01:00
flake-parts.url = "github:hercules-ci/flake-parts";
2025-06-22 23:17:37 +01:00
git-hooks-nix.inputs.nixpkgs.follows = "nixpkgs";
git-hooks-nix.url = "github:cachix/git-hooks.nix";
2025-05-29 11:11:06 +01:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
2025-04-16 18:18:17 +01:00
outputs =
inputs@{ flake-parts, ... }:
2025-06-21 00:49:30 +01:00
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
imports = [
2025-06-23 00:52:23 +01:00
./nix/flake-modules/dev-shell.nix
./nix/flake-modules/git-hooks.nix
];
perSystem =
2025-06-21 00:46:02 +01:00
{ pkgs, ... }:
{
formatter = pkgs.nixfmt-rfc-style;
};
2025-06-21 00:49:30 +01:00
};
2025-04-16 18:18:17 +01:00
}